find max at each row array in a cell

1 回表示 (過去 30 日間)
David Eddy
David Eddy 2021 年 8 月 12 日
コメント済み: David Eddy 2021 年 8 月 12 日
Hello guys, I am having a problem finding max from a cell.
As you can see, this is my cell. At each row i have to find the max. That is,. the first value from cell{1,1}....cell{1,11} should be compared to find the maximum.
I have done similar problem before. I did it by converting it into a matrix using cell2mat and then finding what i need. But now when i try to convert this into a matrix, I get this problem. From my cell, you can see that if i convert it into a matrix, the size of my matrix should be 818320x11. But,i get this.
Do you guys have any idea why i have this?
My code: matrix = cell2mat(cell);
  2 件のコメント
Simon Chan
Simon Chan 2021 年 8 月 12 日
編集済み: Simon Chan 2021 年 8 月 12 日

You converted the entire data into a single row matrix, indicated in your screen capture, 1 x 9001520

And check this link for the message: https://www.mathworks.com/matlabcentral/answers/362457-cannot-display-summaries-of-variables-with-more-than-524288-elements

David Eddy
David Eddy 2021 年 8 月 12 日
Yes @Simon Chan I understand the error. How do i get the matrix 818320x11?

サインインしてコメントする。

採用された回答

Simon Chan
Simon Chan 2021 年 8 月 12 日
B=(cell2mat(A')');
  1 件のコメント
David Eddy
David Eddy 2021 年 8 月 12 日
works! thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by