index multiple columns in cell array
37 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Robert Fischer
am 24 Sep. 2020
Kommentiert: Robert Fischer
am 24 Sep. 2020
Hi, I am still pretty new to Matlab.
I import data from a txt file into a cell-array (ccc). Now I want to retrieve multiple rows and columns:
e.g. myAnimals.monkeys = cell2mat(cellfun(@(x) str2num(char(x)),ccc(5:59,8:10),'UniformOutput',0));
which works fine.
but how do I retrieve e.g. columns 8 to 10 AND 15-18 at the same time?
many thanks, Robert
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!