Info
This question is closed. Reopen it to edit or answer.
How to create multiple array with different name in for loop?
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
KALYAN ACHARJYA
on 7 Apr 2018
Edited: KALYAN ACHARJYA
on 7 Apr 2018
for i=1:10
fprintf('\n arr%i',i);
fprintf('=[]');
end
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!