loop

7 ビュー (過去 30 日間)
nitya ...
nitya ... 2011 年 3 月 21 日
回答済み: Shivani Dixit 2021 年 6 月 1 日
for n=1:length(theta_o)
AF(n,:)=1/N*(sin(...
end
here please explain AF(n,:) means

採用された回答

Matt Tearle
Matt Tearle 2011 年 3 月 21 日
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".

その他の回答 (1 件)

Shivani Dixit
Shivani Dixit 2021 年 6 月 1 日
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 :

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by