.mat file to 3d array

1 回表示 (過去 30 日間)
Carlos So
Carlos So 2014 年 2 月 23 日
コメント済み: Jan 2014 年 2 月 23 日
I have a mat file called testdata3D.mat. I have to create a 3D array with the two pages and name it test_results.
I loaded the page but I'm having a hard time putting it into a single array with two pages. I can do two separate arrays but not sure how to do a single array with two pages. Above is an image of what I have so far. Any help is highly appreciated.
  1 件のコメント
Jan
Jan 2014 年 2 月 23 日
Please post code and examples directly as text, because it is much easier to play with using copy&paste.

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

回答 (1 件)

Jan
Jan 2014 年 2 月 23 日
The loaded data is one string. Therefore I guess, that you have stored the .mat file in ASCII mode. You can try to read it in ASCII mode also:
data = load('-ASCII', 'testData3D.mat')
But it would be more efficient and powerful to store the data in the binary format.

カテゴリ

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