questions on assigning values from a vector
Mostra commenti meno recenti
Hi all,
I am trying to do this assignment:
x1=x(1);
x2=x(2);
.
.
xN=x(N);
How could I do it using a for loop so that I don't need to write them down explicitly. Thanks.
Risposta accettata
Più risposte (1)
Sean de Wolski
il 10 Dic 2013
Modificato: Sean de Wolski
il 10 Dic 2013
1 voto
This is generally recommended against as it is much easier (not to mention faster) to manipulate a 1xn vector x than dealing with n scalar arrays.
Categorie
Scopri di più su Operators and Elementary Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!