how to save values in matfile as array

2 次查看(过去 30 天)
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 个)

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

类别

Help CenterFile Exchange 中查找有关 Workspace 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