I have a 1x933 cell and within that are 1x484 cells. In each of these 1x484 cells, there is a different size double (for example: lets say one is 41x1 double). I would like to get the maximum values (for our previous example: would be 41x1 double of max values) for all 484 cells.
The final result should be a cell with 933 doubles, each double of different size showing the maximum for the 484 cells.
Also would be helpful to get the minimum of the same exact thing, but I assume it will be quite similar to the maximum process...
I am running MATLAB R2016b.
Does that make sense? Any questions please ask and thank you in advance!!!
***UPDATE I have changed the 1x484 cell to 1x2 to be able to upload the .mat file.

5 件のコメント

madhan ravi
madhan ravi 2018 年 12 月 5 日
upload the data as .mat file to test
Austin Sowers
Austin Sowers 2018 年 12 月 5 日
It says the file is too large to upload as a .mat file... ill try again
madhan ravi
madhan ravi 2018 年 12 月 5 日
or try attaching it as zip file
Austin Sowers
Austin Sowers 2018 年 12 月 5 日
Compresing a .mat file doesnt reduce its size much at all.
Austin Sowers
Austin Sowers 2018 年 12 月 5 日
I have changed the 1x484 to 1x2 so that it can be uploaded. Called HeadPipe.mat

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

 採用された回答

Jan
Jan 2018 年 12 月 5 日
編集済み: Jan 2018 年 12 月 5 日

0 投票

With some guessing:
OutMin = cell(size(C)); % I assume C = HeadPipe
OutMax = cell(size(C));
for k = 1:numel(C)
tmp = cat(2, C{k}{:});
OutMin{k} = min(tmp, [], 2);
OutMax{k} = max(tmp, [], 2);
end

1 件のコメント

Austin Sowers
Austin Sowers 2018 年 12 月 5 日
That's it!! Thank you so much!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

製品

リリース

R2016b

質問済み:

2018 年 12 月 5 日

コメント済み:

2018 年 12 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by