how is working for loop?

explain any body how is working for loop in matlab?..and how to give arguments in that?

 Réponse acceptée

José-Luis
José-Luis le 4 Oct 2012

1 vote

doc for
Matlab's documentation is, in my opinion, quite decent. It is always a good place to start.

5 commentaires

Dhines
Dhines le 4 Oct 2012
give me a code for e.g?
for ii = 1:10;
disp(sprintf('The current value of ii is: %i \n',ii));
end
Jan
Jan le 4 Oct 2012
Simply type "doc for" in the command line. Then Matlab's local documentation is displayed and there you find examples. "help for" is a slightly leaner and faster alternative.
Btw. you cannot use such a powerful tool like Matlab without reading the documentation. Start with the "Getting Started" chapters, as their name suggest.
Dhines
Dhines le 4 Oct 2012
thanks for your kindly information
José-Luis
José-Luis le 4 Oct 2012
Please accept the answer if it helped you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by