Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

4 visualizaciones (últimos 30 días)
MD SHAHNAWAZ RAZA
MD SHAHNAWAZ RAZA el 7 de Abr. de 2018
Cerrada: Stephen23 el 18 de Mayo de 2021
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 = [];
....

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 7 de Abr. de 2018
Editada: KALYAN ACHARJYA el 7 de Abr. de 2018
for i=1:10
fprintf('\n arr%i',i);
fprintf('=[]');
end

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by