For-loop in Matlab
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
Hei!
I have the following for-loop:
for c=(1:10)
x=sind(c)
end
disp(x)
How can I get all values of x as a row vector? Matlab gives me values of x separately from each other. I want to combine them all together.
Sergey
2 comentarios
Radmilka
el 16 de Mayo de 2015
for c=(1:10)
x(c)=sind(c);
end
disp(x)
Sergey Dukman
el 16 de Mayo de 2015
Respuestas (1)
Nobel Mondal
el 16 de Mayo de 2015
Editada: Nobel Mondal
el 16 de Mayo de 2015
You don't even need a for loop
c = 1:10;
x = sind(c);
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!