if i consider i=1:1000, what does ':' mean in x(i,:)
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
In a for loop what does : mean in x(i,:) if i consider i=1:1000??
my coding is:
t=20
for i=1:t
error(i,:)= errornew
end
Please help.
Thank you.
0 Commenti
Risposta accettata
Torsten
il 17 Ago 2015
It means that the first 20 rows of the matrix "error" are set to the vector "errornew".
Best wishes
Torsten.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!