How to put a list of different arrays, one below another, to create a new array ?
4 次查看(过去 30 天)
显示 更早的评论
What I am asking is similar to this example,
I have y1,y2,y3 manually created and I want my final array to be
data = [y1;y2;y3];
How am i supposed to do the same thing inside a for loop ?
for i=1:10
y = myfunc();
data = ??
end
I hope you understood what I cant do and I sincerely hope this can be done someway.
P.S.: I am aware of allocating memory space for the dynamically created array data
Thanks for your time in advance !
0 个评论
采纳的回答
Azzi Abdelmalek
2013-6-7
编辑:Azzi Abdelmalek
2013-6-7
Edit
data=[];
for i=1:21
a = handles.models(i).gmm;
b = a.mu';
SV = b(:)';
data=[data;SV]
end
8 个评论
Azzi Abdelmalek
2013-6-7
data=[];
for i=1:21
a = handles.models(i).gmm;
b = a.mu';
SV = b(:)';
data=[data;SV]
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!