Generating a series of marices
2 次查看(过去 30 天)
显示 更早的评论
Basically, I'm trying to read a large matrix and then break that into a series of arrays. I was attempting something of the nature.
for i= 1:size(a,1)
m_i = a(i, 1:size(a,2)
end
and I want to get back
m_1 = [....] m_2 = [.....] m_3 = [....]
any help on what actual command to use would very helpful. Thanks
1 个评论
Star Strider
2015-2-3
Don’t do that!
Simply address your row vectors as elements in your ‘a’ matrix. Don’t create individual variables for each row.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!