how to make cell2mat for many column to one vector ?
2 ビュー (過去 30 日間)
古いコメントを表示
i have a cell like this image
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 件のコメント
採用された回答
その他の回答 (1 件)
Image Analyst
2016 年 4 月 24 日
Did you try something like this
col5 = nilai{:, 5};
magCol5 = abs(col5);
[maxValue, indexOfMax] = max(magCol5)
5 件のコメント
Image Analyst
2016 年 4 月 25 日
Just put it as a line in your program, or type it at the prompt in the command window.
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!