how p(:,j) differs from p(j,:)?
Mostrar comentarios más antiguos
I often see people using these,
how p(:,j) differs from p(j,:)?
Respuesta aceptada
Más respuestas (1)
Wayne King
el 27 de Dic. de 2012
Editada: Wayne King
el 27 de Dic. de 2012
p(:,j) takes all the rows and the j-th column of p
p(j,:) takes the j-th row and all the columns of p
So
p = [1 2; 3 4];
j = 1;
p(j,:)
p(:,j)
Categorías
Más información sobre Object Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!