how to create an array for each element of array
1 次查看(过去 30 天)
显示 更早的评论
I have to create an array for each element of array. In 1st loop I have to create a array variable in 2nd loop values are stored in that array. But 1st array variables are need to be generate randomly.
l= any random number for i= 1:l node(i) for j = 1:l if(AdjMat(1,j)==1) node(i(a))=j; a=a+1; end end end end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!