Hello Everyone: I need to convert the variables (10 temperature profiles collected with a CTD) contained inside a cell array (rsk.mat herein attached) to ten single arrays. Please could anyone provide a hint as to how to accomplish this?
Cheers,
Felipe

3 件のコメント

Adam Danz
Adam Danz 2019 年 12 月 11 日
The mat file contains a structure variable named rsk. Where do we find the data you'd like to convert?
Adam Danz
Adam Danz 2019 年 12 月 11 日
Felipe Rios's answer moved here as a comment.
Hi Adam: rsk.data contains the values for the 10 profiles I need to convert to single matrix for each profile.
Thanks,
Felipe
Adam Danz
Adam Danz 2019 年 12 月 11 日
Glad I could help!

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

 採用された回答

Adam Danz
Adam Danz 2019 年 12 月 11 日
編集済み: Adam Danz 2019 年 12 月 11 日

0 投票

This produces a 100x10 matrix and can be applied to several fields of rsk.data.
tstamp = [rsk.data.tstamp];
For fields that contain non-numeric data,
direction = {rsk.data.direction};

1 件のコメント

Adam Danz
Adam Danz 2019 年 12 月 11 日
Felipe Rios's answer moved here as a comment
Thanks a lot Adam; profiles = [rsk.data.values] is what I needed!
I appreciate your help.
Cheers,
Felipe

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

タグ

質問済み:

2019 年 12 月 11 日

コメント済み:

2019 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by