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/a0ns

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

__NOTOC__ Arrays of four 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(332), imagesc(A) % 3 row; 3 columns; Image 2 axis square, title('A') %% % Matrix 3x3 --------------------- B = [ 1 3 5 ; 3 2 4 ; 5 4 3 ] subplot(334), imagesc(B) % 3 row; 3 columns; Image 4 axis square,title('B') %% % Matrix 3x2 --------------------- C = [ 1 3 ; 3 2 ; 5 4 ] subplot(336), imagesc(C) % 3 row; 3 columns; Image 6 axis square,title('C') %% % Matrix 2x3 --------------------- D = [ 1 3 3; 3 2 5] subplot(338), imagesc(D) % 3 row; 3 columns; Image 8 axis square,title('D') %%