how to save values in matfile as array

9 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2012 年 12 月 3 日
i wanted to create a matfile...
stats=[ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];
i did like this... each statmat1 to statmat26 contains 8 values... now when i save in the above manner the values are getting saved in one single row of matfile having 208 columns....
how can i save each statmat values in one matfile having 26 rows each having 8 column values... please reply...

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 12 月 3 日
編集済み: Andrei Bobrov 2012 年 12 月 3 日
Elysi wrote: " ...stats = [ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];..."
out = reshape(stats,8,[]).';
  1 件のコメント
Elysi Cochin
Elysi Cochin 2012 年 12 月 3 日
thank u sir...

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

その他の回答 (1 件)

Ilham Hardy
Ilham Hardy 2012 年 12 月 3 日
stats=[ statmat1;statmat2;statmat3;......... statmat24;statmat25;statmat26];

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by