Get all the values from a two (for loop)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ali Tawfik
el 9 de Jun. de 2020
Respondida: madhan ravi
el 9 de Jun. de 2020
I am running two for loops with means it run 5*5..
Later the size of x will be (1,5) however; the x runs more than that!!!
Can I obtain all the values of the x ...I mean all the values running even in matrix
clear all;
clc;
d=1:5;
for i=1:5
g=1:5;
for j=1:length(g)
x(:,i)=d(i)*2;
end
end
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!