Borrar filtros
Borrar filtros

loop

2 visualizaciones (últimos 30 días)
nitya ...
nitya ... el 21 de Mzo. de 2011
Respondida: Shivani Dixit el 1 de Jun. de 2021
for n=1:length(theta_o)
AF(n,:)=1/N*(sin(...
end
here please explain AF(n,:) means

Respuesta aceptada

Matt Tearle
Matt Tearle el 21 de Mzo. de 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".

Más respuestas (1)

Shivani Dixit
Shivani Dixit el 1 de Jun. de 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 :

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by