how to make cell2mat for many column to one vector ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ElizabethR
am 24 Apr. 2016
Kommentiert: ElizabethR
am 26 Apr. 2016
i have a cell like this image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162377/image.png)
i want to get the maximum value from valeu of column 2 to 5. when i using cell2mat function, i get the error. so, how to convert the value of column 2 to 5 to be vector so i can get the maximum value ? thanks
3 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 24 Apr. 2016
Did you try something like this
col5 = nilai{:, 5};
magCol5 = abs(col5);
[maxValue, indexOfMax] = max(magCol5)
5 Kommentare
Image Analyst
am 25 Apr. 2016
Just put it as a line in your program, or type it at the prompt in the command window.
Siehe auch
Kategorien
Mehr zu Data Distribution Plots 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!