Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to create multiple array with different name in for loop?

조회 수: 4 (최근 30일)
MD SHAHNAWAZ RAZA
MD SHAHNAWAZ RAZA 2018년 4월 7일
마감: Stephen23 2021년 5월 18일
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 = [];
....

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 4월 7일
편집: KALYAN ACHARJYA 2018년 4월 7일
for i=1:10
fprintf('\n arr%i',i);
fprintf('=[]');
end

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by