Question

help me debug this script!

Hi I have this script: %%this script produces the anova1 values for n1-35 in session 1 n = 1:35 dataset_pfc_tar_57_n = datas...

7 months ago | 1 answer | 0

Question

to run NaN values with anova1

Hi, I have a matrix (8 x 621) and would like to run Anova1 between the 8 groups (rows). I have attached how the dataset looks li...

7 months ago | 1 answer | 0

Question

Repeat rows of matlab

I have a 1 x 10 matrix and would like to duplicate the same row (and same data) to a 10x 10 matrix. How may I do this?

7 months ago | 1 answer | 0

Question

For command in function

I have a function attached and would like it to automatically run it with x = 2:4 & y = 2:4, that is, the function to run 8 time...

7 months ago | 1 answer | 0

Question

Issue with writing a function

Hi, I am attempting to write a function (named mean) in order to 1) filter matrix A (100 x 2 matrix) by x & y (i.e all the row...

7 months ago | 0 answers | 0

Question

Creating a script with if statements

Hello. I would like to create a script but am still a little new to flow control. I have a matrix A of numbers (100 x 2) , of wh...

7 months ago | 1 answer | 0

Question

selecting different criteria for logicals

I have a 100 x 2 matrix and would need to filter those rows that has 2 in the first column, and 3 in the second column into a lo...

7 months ago | 1 answer | 0

Question

location of logical matrix

Hi I have a 10 x 2 logical matrix and I would need to find out the location of the rows which both columns are ones i.e 1 1. ...

7 months ago | 2 answers | 0

Question

extracting data from struct(structure within a structure)

I have a struct dataset (trials), with 1x1 struct data set in them. The 1x1 struct data sets (under target) contain 3 fields (ti...

8 months ago | 1 answer | 0

Question

selecting specific layers in the 3rd dimension of a matric

Hi, I have a matrix A of size 226 x 621 x 59. May I know how do I form a new matrix of A[:,:,(43;53)] - selecting only the 43-53...

8 months ago | 1 answer | 0