Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
For-loop in Matlab
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Nobel Mondal
le 16 Mai 2015
Modifié(e) : Nobel Mondal
le 16 Mai 2015
You don't even need a for loop
c = 1:10;
x = sind(c);
0 commentaires
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!