Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to create multiple array with different name in for loop?
4 次查看(过去 30 天)
显示 更早的评论
for i=1:10
arr = strcat('arr',num2str(i));
arr[];
end
This code is not working. so how we can do?
I want make an array like this.
arr1 = [];
arr2 = [];
arr3 = [];
....
0 个评论
回答(1 个)
KALYAN ACHARJYA
2018-4-7
编辑:KALYAN ACHARJYA
2018-4-7
for i=1:10
fprintf('\n arr%i',i);
fprintf('=[]');
end
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!