Community Profile

photo

Bubblesjinx


Last seen: 3 years ago Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


I want to add this cell variable 'condition_col' to existing matrix 'data' if certain conditions are met, following code doesn't work, any help?
condition_col = 'codition1' condition_col = cellstr(condition_col); data = num2cell(data); for i = 1:length(data) if s...

4 years ago | 1 answer | 0

1

answer

Question


I have a cell matrix and would like to merge these all columns together vertically. How can I do that?
% this just gives me two cell vertically concatenated; I waould like to merge the data of these columns into one . data_final =...

5 years ago | 1 answer | 0

1

answer

1

answer

Question


How can I convert a cell array with values {'S101' 'S102'},to a double array?
events = {'S100';'S102';'S103';'S101'}

5 years ago | 1 answer | 0

1

answer

Question


I have two cell arrays of size 1*32 but contains different size of columns like 1*145 double, 1*1035 double (screenshot attached). I want to concatenate them using following pseudo code. How can I do that? Any suggestions would help.
initialize matrix data_concat of size channels X total time points initialize matrix time_concat of size 1 X total time point...

6 years ago | 1 answer | 0

1

answer

Question


I have two cell arrays that are structure fields (data.trial = 32*751) and (data.time = 1*751), generated in Fieldtrip. My aim is to concatenate them using the following pseudo code: Can anyone please provide the code.
> initialize matrix data_concat of size channels X total time points > initialize matrix time_concat of size 1 X total time...

6 years ago | 0 answers | 0

0

answers

Question


I have 'value' as a cell array (Size 160*1) contians S101,S100,S103, S102 randomly.I need to look for S100 followed by S102 in this cell array such that if t1 == 'S100' && t2 == 'S102'. How can I do that?
for j = 1:(length(value)-1) t1 = value(j); t2 = value(j+1); if ~ strcmp {t1 , 'S100'} && strcmp {t2, 'S102'...

6 years ago | 1 answer | 0

1

answer

Question


I have two columns. I want to see how many times a specific row combination occur? For example, I want to see how many Abitur with 0 are there? and How many abitur with 1 are there?
'Abitur' '0' 'Abitur' '0' 'Abitur' '0' 'Abitur' '0' 'Abitur' '0' 'Abitur' '1' 'Abitur' '0' 'Abitur' '0' 'Abitur' '0' 'A...

6 years ago | 0 answers | 0

0

answers

Question


Append cell column to a matrix
I have a matrix AUC(3296x4) double, I need to append a cell column condition = {'FaHPF','FaHPuF','FaHuPF','FaHuPuF','FaEPF'...

6 years ago | 1 answer | 0

1

answer

0

answers

Question


How to integrate across row values?
I have an array of size 180*10, and I want to find AUC score of values across rows by applying trapz function.How to make loop t...

6 years ago | 1 answer | 0

1

answer

Question


I have a matrix of dimension 180x41 double. First column of the matrix is SubjectID, rest columns are four scores for 10 segments. I need to calculate mean of four scores for each part and store in one matrix. Please Help!
The output should look like as: SUbID MSE1_S1(Mean) MSE2_S2(Mean) MSE3_S3(Mean)...... where MSE1_S1 = mean(MSE_1_S1,MSE_1_S...

6 years ago | 3 answers | 0

3

answers