Question

How to exclude certain rows and columns based on a column value?

Dear all, Attached you find a data file called "a" that has 30 rows and 24 columns. What I call "a trial" represents 1 row of...

6 months ago | 1 answer | 0

Question

How can I check which values in 2 matrices are identical?

Dear all, I have 2 matrices (attached) - as their name suggests, the 1st contains mean values while the 2nd contains trimmed ...

3 years ago | 1 answer | 0

Question

How to randomise scalars in a vector, in steps of 4?

Dear all, I am trying to randomise the subconditions of the main conditions of my experiment (please see counterbalancing.mat...

4 years ago | 2 answers | 0

Question

How to randomise numbers in a vector?

Dear all, Suppose I have this vector x= [1;2;3;4]; How can I randomise it? (i.e. create different combinations of 1, 2, ...

4 years ago | 2 answers | 1

Question

How to fit line of best fit to scatterplot in R2012a

Hello, Suppose I have 2 variables curiosity = [4.916666667 3.916666667 3.666666667 5.083333333 4.666666667 3.75]; ...

4 years ago | 1 answer | 0

Question

How to install errorbarbar function (r2012a)?

Hello, I've just downloaded the .zip folder attached thinking that it'll contain a file which, once activated, would incorpor...

4 years ago | 0 answers | 0

Question

Accumarray error: First input SUBS must contain positive integer subscripts.

Hello, The accumarray function is causing me problems - the error is embedded within the question. Attached you find a sample...

4 years ago | 2 answers | 0

Question

How to load only a subset of .dat files into MATLAB?

Hello, I am currently trying to load only a subset of files (i.e. files 1 to 6) into MATLAB using the following piece of code...

4 years ago | 1 answer | 0

Question

xlsread function does not concatenate all files into one big matrix as expected

Hello, I am working with a few .xlsx files which I want to concatenate into one, big matrix. Attached you find examples of 4 ...

4 years ago | 1 answer | 0

Question

How to count iterations of an element in a column according to elements in another column?

Hello, Attached you find a matrix I'm working with in R2012a. Column 1 corresponds to participant ID, 2 corresponds to questi...

4 years ago | 1 answer | 0

Question

'Find' function doesn't get me all required values

Hello, I am trying to use the 'find' function in order to locate some data-points that I need to exclude (erase all (:,25)>10...

4 years ago | 1 answer | 0

Question

Get properties of histogram in MATLAB r2012a

Hey I am trying to plot a histogram as follows: x= [1 2 3 4 5]; nbins = 20; histogram = hist(x,nbins) However, ...

4 years ago | 2 answers | 0

Question

How do I index through logical vectors properly?

Hiya, I have this piece of code (see image below). <</matlabcentral/answers/uploaded_files/49116/Untitled.jpg>> 1. when...

4 years ago | 1 answer | 0

Question

How can I display matrix with column labels only? (i.e. no row labels)

Hi there I have a 1300x23 matrix and I want to label CERTAIN columns only (and not rows as well). I'm facing 2 challenges: 1...

4 years ago | 1 answer | 0

Question

How to load multiple .dat files into MATLAB?

Hey, I have 53 .dat (000n_3.dat, 000n_50.dat; 000n+1_3.dat, 000n+1_50.dat; etc. - as you can see, their names are similar but...

4 years ago | 3 answers | 0

Question

How to import .dat files (comprising multiple columns which can only be copied and pasted all at the same time) into MATLAB?

I'm currently trying to import a .dat file (e.g.0002_03.dat) into MATLAB in order to logically arrange the data in a spreadsheet...

4 years ago | 1 answer | 0