Finding maximum and its index of the row that contains the max value in a cell array in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
hie. i have had the cell matrix attached to this post. what i want is to find the maximum value in each odd column(i mean in columns 1, 3,5,and so on), and then to return to me, the maximum value of that column in addition to the corresponding row from the even column next to it. for example, if we consider the first two columns, the maximum value of the first one is 10, and the corresponding row from the second column is 5, i want a code that returns this 10 and that 5 to me for example in two different cells, and to do this for all the columns of this cell matrix. i have tried the usual max function and even the cellfun for max. none of them does what i want. can any body help please?
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!