Select specific cells from a cell array and create a seperate vector

3 次查看(过去 30 天)
Hi everyone,
I have the following cell array
Max_Col_Cell(9,10,15)
I want to isolate every combination of the first two elements (9,10) for all the 15 values of the third element and create new vectors having one column with 15 rows.
For example create a vector having (1,1,:). Another vector having (2,1,:) etc....
I am trying to write a for loop but its not working.
How can i do this?
Ilias
  2 个评论
Ilias Minas
Ilias Minas 2020-3-28
Thank for your reply.
I thought that having seperate vactors it would be easier to handle them cause i want to extract the maximum value of those 15 elements.
Is it possible to rearrange in the way that i want in a matrix?

请先登录,再进行评论。

采纳的回答

the cyclist
the cyclist 2020-3-28
编辑:the cyclist 2020-3-28
Does your cell array have only numeric values in it?
If yes, then
maxVal = max(cell2num(C),[],3)
where C is your cell array.
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by