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...
0 个评论
采纳的回答
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
2012-12-3
stats=[ statmat1;statmat2;statmat3;......... statmat24;statmat25;statmat26];
0 个评论
另请参阅
类别
在 Help Center 和 File 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!