Max Value of Certain Row in Cell Array?

4 views (last 30 days)
I have a 15x15 array and I would like the max value from the 4th row, how would I go about doing this?
  2 Comments
Ibro Tutic
Ibro Tutic on 3 Dec 2015
The cell array itself is 15x15 and there is a scalar value in each cell. Sorry for not clearing that up in the question.

Sign in to comment.

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 3 Dec 2015
a = cell2mat(yourcellarray);
out = max(a(4,:));
  3 Comments
Ibro Tutic
Ibro Tutic on 3 Dec 2015
Yep, I already addressed that. I realized that as soon as I posted the problem and did everything in terms of a numeric array. To get the max value I simply used
max(myarray(4,:)).
Thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on Cell Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!