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!