Question

How to remove the horizontal line at 0

Hi All, How do I get rid of the horizontal line at the zero (0) mark on the y-axis in a line plot? Please see attached image be...

24 days ago | 1 answer | 0

Question

How to pass gui output to workspace?

Hello, I am trying to develop a gui using matlab app designer. 1. How do I write the code such that the output of a push butto...

7 months ago | 1 answer | 0

Question

Accessing information within a structure in app designer and How to pass data from one push-button to the other

Hi, I am developing a simple app using the app designer. This is pretty new to me and I am not experienced when it comes to app ...

7 months ago | 1 answer | 0

Question

Code for saving files as .mat is very very slow

Hi, I am loading multiple .csv files into matlab and re-saving them as .mat files. The code takes way too long (hours) to save ...

8 months ago | 0 answers | 0

Question

Read data from matlab struct and merge

Hello, please I have multiple .mat files in a folder. Each one is a matlab struct called T and each T contains contains 2 files,...

8 months ago | 1 answer | 0

Question

Merge multiple txt files in matlab

Hello, I have multiple txt files and I want to merge them into a single matrix in matlab. Each file has 3 rows of headers. A su...

8 months ago | 0 answers | 0

Question

Put every 3 data points in matrix A into a separate row in matrix B.

Hi, I have the following column vector called A: 1 2 3 4 5 6 7 8 9 What I want is a code that will take every 3 data ...

8 months ago | 1 answer | 0

Question

Shifting signals to the right

Hi, I have a matrix, M which is 10*2000 double (10 rows of signals and each signal contains 2000 variables). I want to shift eac...

8 months ago | 1 answer | 0

Question

Perform rssq on each row

Hi, I have an 100:5000 data matrix called X and I want to perform root-sum-of-squares level on each row of X and output the resu...

11 months ago | 1 answer | 0

Question

Error using cd Cannot CD to ...(Name is nonexistent or not a directory)

Hi, I have the following code oldp = uicontrol(fig,... 'Style', 'Push',... 'BackgroundColor', [1 1 .7],... 'unit...

11 months ago | 1 answer | 0

Question

MATLAB Code Error Help

I have a matlab code which is gui based. I am using this code in Matlab 2019b for the first time. The code works in 2017a. below...

11 months ago | 1 answer | 0

Question

Comparing Two Data to find best match

Hello, I have 2 sets of data, Y and X. Y data is a single column and X contains multiple columns. X & Y have different lengths....

12 months ago | 1 answer | 0

Question

Find Second Closest Datetime

Hi all, I have two datetime tables say A and B. I am able to compare A to B and extract the datetimes in A nearest to B with ...

1 year ago | 1 answer | 0

Question

Closest date to another

I have the code below which compares and extract the closest date & time in data1 to data2. It works well but I don’t want dupli...

1 year ago | 1 answer | 0

Question

Matching two objects based on Time difference

Hi, Supposing I have two cars A and B. A always arrives at every 10 minutes while B arrives at every 5 minutes or less after ...

1 year ago | 0 answers | 0

Question

Extract values common to 5 columns

Hi, I have a matrix A with 5 columns (1 to 5). I want to compare columns 1 through 5 and then extract values common to all 5 co...

1 year ago | 2 answers | 0

Question

Unique Number Assignment To Each Time

Hi, I have a series of times in column 1. The times are 1.1, 1.1, 1.1, 1.2, 1.2, 1.2, 2.1, 2.1, 2.1 etc. I want to assign a u...

1 year ago | 2 answers | 0

Question

Intersect, Compare two columns or two matrix and extract common information

Hi All, I have a matrixe with 4 columns (A to D) or 1 to 4. I want to compare columns 2 and 4 and if a match is found, put the ...

1 year ago | 1 answer | 0

Question

Draw vertical lines on a plot

Hi, I have a plot and I want to draw several vertical lines (about 40 of them) at specific locations on the plot. How do I go...

1 year ago | 2 answers | 0

Question

Data Sorting (looking for a range that do not exist in a list of numbers)

Hi All, Assume I have a column vector (please see attached) and it contains numbers but its not contineous. That is, say I have...

1 year ago | 1 answer | 0

Question

Dot indexing not supported

Hi, I have the code: x.y{2} = b x is a 10by200 matrix and y is a row vector (1by200) and b is also a row vector (1by200) wh...

1 year ago | 1 answer | 0

Question

Data Selection/Sorting

I have a column vector known as Data. Please see attached. I want to divide/sort this column vector into two (80% and 20%). I wa...

1 year ago | 1 answer | 0

Question

Compare two tables and extract the columns similar to both

Hi I have two data matrix, one is A and the other is B. I want to compare each column in A to B and if a match is found in B, th...

1 year ago | 1 answer | 0

Question

Compare to rows and delete matching rows

Update: I have attached to mat files. I want to compare the rows in file A to that of file B. If a number in the first column of...

2 years ago | 2 answers | 0

Question

Convert .txt files to .CSV files

Hi Guys: I want help in converting .txt files in my current matlab directory into .csv files while retaining the original nam...

2 years ago | 1 answer | 0

Question

Getting data from specific columns in a table

Hello: I have table_1 and say it has 6 columns. I would to love to have a code that will enable me to get data from a specifi...

2 years ago | 1 answer | 0

Question

How to find which columns are different between two tables

Hello: I have 2 datasets (Table A and Table B). Table A has 1200 columns while that of B has 1205 columns. They all have the...

2 years ago | 1 answer | 0

Question

How to convert a spectrum/spectra to a barcode

Hello guys, I have a spectrum (FTIR) and I want to convert the spectrum to a barcode data and possibly plot it. This could b...

2 years ago | 0 answers | 0

Question

Calculating Probability of a data

Hello friends, I have two data, dataA (26*1 double) and dataB (90*1 double). I want to calculate the probabilities of each eac...

3 years ago | 0 answers | 0

Question

Calculating the probability of a data point in a histogram

<</matlabcentral/answers/uploaded_files/116519/Picture1.png>> Hello: The image below is a histogram of a large data set (9...

3 years ago | 2 answers | 0