MATLAB: Change value of states “active” to 1 and “rest” to -1 arraycellcell arraysmatrix manipulationtable I have attached a mat file for your reference. Best Answer stats.state(ismember(stats.state,'rest'),:) = '-1';stats.state(ismember(stats.state,'active'),:)= '1' Related SolutionsMATLAB: Problem with find string in array Wanted = ismember(cellstr(Mfg),'bmw') MATLAB: So I wanted to split the 1X15 cell to different cells. If you want to perform group statistics, the simplest is indeed to put everything in just one table:allresults = vertcat(result{:}); %concatenate everything into one tableallresults.channel = repelem((1:numel(result))', cellfun(@height, result)); %and add a channel columnIt's then trivial to calculate group statistics with groupsummary or grpstats:stats = groupsummary(allresults, {'state', 'channel'}, {'mean', @kurtosis}); %not sure what you mean by slope and peak Related QuestionDeleting a row based on index.How to break a saved signal into pieces according to when the subsystem that produces it is resetHow to count different value from 2 cellProblem with function handle for Basis function in fitrgpHow to create a table and add elements to the table in MATLAB
Best Answer