Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0nq

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Arrays of three matrices in the form of an indexed color image. thumb|Display a matrix as an indexed color image with octave Copy/Paste into the octave window % subplot(abc): % % a: the number of rows % b: the number of columns % c: the plot index. % % Matrix 2x2 ------------- A = [3 4; 4 2] figure(1) subplot(131), imagesc(A) % 1 row; 3 columns; Image 1 axis square, title('A') %% % Matrix 3x3 --------------------- B = [ 1 3 5 ; 3 2 4 ; 5 4 3 ] subplot(132), imagesc(B) % 1 row; 3 columns; Image 2 axis square,title('B') %% % Matrix 3x2 --------------------- C = [ 1 3 ; 3 2 ; 5 4 ] subplot(133), imagesc(C) % 1 row; 3 columns; Image 3 axis square,title('C') %%