Bubblesjinx
Followers: 0 Following: 0
Feeds
提问
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...
5 years 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
I have a 101 by 23 matrix, where first column is the ID of persons. I want to extract each value of every person <1.5, and store them in a new matrix, SO resultant matrix should have all values <1.5 and rest can be substituted to 0.
[numData,~,rawData] = xlsread('C3.csv'); lowscale = zeros(size(numData)); lowscale = numData(any(numData < 1....
5 years 前 | 1 个回答 | 0
1
个回答提问
I have this code, where 'data' changes its size with every loop and has to be divided into four equal segments. This division has to be stored in variable 'epoch'. storing it in cell variable isn't an option. How can I store differen lengths of data?
data = y; seg = y/4; signal = data(1,:); for e = 1:4 epoch (e,:) = signal(1+(e-1)*seg:e*seg); end
6 years 前 | 1 个回答 | 0
1
个回答提问
I have a data matrix each for 100 persons.Initially I was dividing columns into four segments (see code below). Now this data matrix vary, instead of 10000, the columns have different lengths. How can i divide them into 4 segments?
data_10_col = data(:,[1:10000]); for e = 1:4 epoch(e,:) = data_10_col(1+(e-1)*2500:e*2500); end
6 years 前 | 1 个回答 | 0
1
个回答提问
How can I convert a cell array with values {'S101' 'S102'},to a double array?
events = {'S100';'S102';'S103';'S101'}
6 years 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
I wish to convert data from fieldtrip to eeglab using fieldtrip2eeglab function. My Data.trial is a cell array, and apply the follwing code, it gives me an error on line 17, "not enough arguments". Can anyone please help, to figure me out the error?
endfunction [EEG] = fieldtrip2eeglab(data) [ALLEEG EEG CURRENTSET ALLCOM] = eeglab; e load chanlocs.mat ...
6 years 前 | 0 个回答 | 0
0
个回答提问
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 前 | 0 个回答 | 0
0
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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'...
7 years 前 | 1 个回答 | 0
1
个回答提问
I've index of each column of a cell array( A =3297*40 ). as ind_a = (1,5,9,13), ind_b = (2,6,7,8) and so on. I have to calculate AUC score using trapz of elements on index of ind_a across rows. Any help!
ind_a = 1: 4: size(MALL1, 2);ind_b = 2: 4: size (MALL1, 2); MALL1 is a cell array of size 3297*2
7 years 前 | 0 个回答 | 0
0
个回答提问
I want to calculate AUC score by using trapz function , integrating across rows. My matrix has dimension (180*10). So, There should be a table with 180 rows a and one column of AUC scores.
output should contain 180 rows and one column.
7 years 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 3 个回答 | 0