![]() ![]() You cannot subscript a table using only one subscript. I tried: B = cell2mat(S) īut it returns this error: Error using cell2mat (line 42) Then I thought that maybe I should have converted the table into matrix, to directly delete rows from the matrix. ![]() I also tried: array(strcmp(S(:, 4), 'preo'), :) = Īnd it gives me this error: Deletion requires an existing variable. I tried: A= S(S.type='preo', :) Īnd it gives me an error: Undefined operator '=' for input arguments of type 'cell'. However I was not able to select only the rows with 'preo' in type. So far I tried: S = struct2table(EEG.event) My ultimate aim is to create a matrix with all the columns from the structure EEG.event and only the rows with 'preo' in, plus other columns from other variables. I would like to keep only those rows of the structure that contain 'preo' in the column. The 4th field of EEG.event is type and it contains strings (i.e. ![]() One of these fields is called event and is a 1x180 structure, with 13 different fields, some of which are strings and some numeric values. I have a 1x1 structure (EEG) with 42 fields. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |