loop
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
nitya ...
le 21 Mar 2011
Réponse apportée : Shivani Dixit
le 1 Juin 2021
for n=1:length(theta_o)
AF(n,:)=1/N*(sin(...
end
here please explain AF(n,:) means
0 commentaires
Réponse acceptée
Matt Tearle
le 21 Mar 2011
The n th row of the matrix variable AF. The colon stands for all indices, and MATLAB indexes by row-then-column. Hence, AF(n,:) means "nth row, all columns".
0 commentaires
Plus de réponses (1)
Shivani Dixit
le 1 Juin 2021
With reference to selecting elements from a matrix ':' refers to selecting the elements from starting index to ending index. In the code AF(n,:) means selecting the nth row and all the columns. Basically it means selecting full n'th' row.
For more information you can have a look at :
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!