Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
For-loop in Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Nobel Mondal
am 16 Mai 2015
Bearbeitet: Nobel Mondal
am 16 Mai 2015
You don't even need a for loop
c = 1:10;
x = sind(c);
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!