loop
조회 수: 1 (최근 30일)
이전 댓글 표시
for n=1:length(theta_o)
AF(n,:)=1/N*(sin(...
end
here please explain AF(n,:) means
댓글 수: 0
채택된 답변
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".
댓글 수: 0
추가 답변 (1개)
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 :
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!