Question


How do I apply distance formula for 3D coordinate points for all elements in a cell array?
Hi, I have a cell array where each cell contains a matrix of 3D coordinates (xyz) for three positions (9 columns in total). The...

3 years ago | 1 answer | 0

1

answer

Question


How do I calculate the distance between 3D coordinate points using cell array?
Hi, I am trying to find the distances between pairs of 3D coordinate points. I have a cell array as my data set. Inside each ce...

3 years ago | 0 answers | 0

0

answers

Question


How to remove NaNs from rows in matrices within a cell array?
Hi all, I have this cell array participant _H where some of the matrices inside the cells include NaNs. When I try and remove a...

3 years ago | 1 answer | 0

1

answer

Question


How do I find the index of the first occurance of a string in a cell array?
Hi, this seems to be a bit harder than I originally thought. I am looking for occurances of events which are tracked by strings...

3 years ago | 1 answer | 0

1

answer

Question


How to get average for each row in a cell array containing multiple matrices?
Hi, I have a cell array 19x21 called Hurst (see attachment) where each row contains differently sized cells. These cells contai...

3 years ago | 1 answer | 0

1

answer

Answered
How can I change input of function from file to cell array?
Beautiful! Many thanks! Sorry one last thing, I promise! When running this code the resulting cells are saved in a single row r...

3 years ago | 0

Question


How can I change input of function from file to cell array?
Hi, I have this function dfaedit_2('filename.csv',0,0,0) and it only takes files as input. I have a cell array with a size of 1...

3 years ago | 2 answers | 0

2

answers

Question


How to use cellfun with a function that has multiple arguments?
Hi, I have the function dfaedit_2 which takes three arguments: H = dfaedit_2(0,0,0) Now, I want to run this fucntion on ever...

3 years ago | 0 answers | 0

0

answers

Question


Error using reshape function when trying to split columns into equally sized columns in new cell array
Hi, I have a cell array (participants) with 19 cells (one cell for each participant). Within each cell there is a matrix with 2...

3 years ago | 1 answer | 0

1

answer

Question


Error using reshape when creating a new cell array in a loop
Hi, I have a cell array with 19 cells. Within each cell there is a matrix with 21 columns. Now I want to loop a piece of code o...

3 years ago | 1 answer | 0

1

answer

Question


Error when indexing 3D cell array: Index in position 2 exceeds array bounds
EDIT: more details provided by myself in the second comment Hi, I have a cell array with 19 cells. Within each cell there is...

3 years ago | 1 answer | 0

1

answer

Question


Save multiple columns of multiple csv files?
Hi, I have the following code: [file_list, path_n] = uigetfile('.csv', 'Grab csv', 'Multiselect', 'on') columns(); if ismatr...

3 years ago | 1 answer | 0

1

answer

Question


How to import files in bulk and loop over them
Hi, I am working with a large data set with csv files for different participants. I have a multilayered issue I am looking to ...

3 years ago | 1 answer | 0

1

answer

Question


How do I add a column to an existing matrix?
Hi I have this code here: [m,n] = size(windows); H = zeros(n,1); for i = 1:n r = windows(:,i); H(i) = dfaedit(r,1,1...

3 years ago | 1 answer | 0

1

answer

Question


How do I loop a fucntion over matrix columns and store the results in a column?
Hi, I have an issue writing a while loop correctly. I have a variable (R) with values that are stored in a matrix full of colum...

3 years ago | 1 answer | 0

1

answer

Question


How can I reshape single column vector list into equally sized matrix columns
Hi, I have a single column vector variable with a list of 26599 elements. I want to reshape this list into a matrix of equally...

3 years ago | 2 answers | 0

2

answers

Question


Why do I receive this error when using cumsum: "Invalid data type. First input argument must be numeric or logical." ?
Hi, I am a psychologist with very little experience in Matlab and am just trying to run a code (see attachment). The function i...

3 years ago | 2 answers | 0

2

answers