Effacer les filtres
Effacer les filtres

if i consider i=1:1000, what does ':' mean in x(i,:)

5 vues (au cours des 30 derniers jours)
Nitesh
Nitesh le 17 Août 2015
Réponse apportée : Torsten le 17 Août 2015
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.

Réponse acceptée

Torsten
Torsten le 17 Août 2015
It means that the first 20 rows of the matrix "error" are set to the vector "errornew".
Best wishes
Torsten.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by