how p(:,j) differs from p(j,:)?
Ältere Kommentare anzeigen
I often see people using these,
how p(:,j) differs from p(j,:)?
Akzeptierte Antwort
Weitere Antworten (1)
Wayne King
am 27 Dez. 2012
Bearbeitet: Wayne King
am 27 Dez. 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)
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!