matlab code 3

matlab code 3 - nrows=3 ncols=3 A=zeros(nrows,ncols for...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Various line types, plot symbols and colors may be obtained with PLOT(X,Y,S) where S is a character string made from one element from any or all the following 3 columns: b blue . point - solid g green o circle : dotted r red x x-mark -. dashdot c cyan + plus -- dashed m magenta * star (none) no line y yellow s square k black d diamond v triangle (down) ^ triangle (up) < triangle (left) > triangle (right) p pentagram h hexagram Common matrix set up
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: nrows=3; ncols=3; A=zeros(nrows,ncols); for row=1:nrows for col=1:ncols A(row,col)=10*row+col; end end A for scalar values in algebra or Matlab: c=a/b or When a and b are matrices, /b is not defined but c = a * inv(b) where inv=inverse For scalar values in algebra a x = b inv(a) a x = inv(a) b but inv(a) a = 1 so x = inv(a) b For matrices A X = B X = inv(A) B In Matlab, X = inv(A)*B or X = A\B...
View Full Document

This note was uploaded on 04/07/2011 for the course BME BME taught by Professor Dr.thomas during the Spring '11 term at Saint Louis.

Page1 / 2

matlab code 3 - nrows=3 ncols=3 A=zeros(nrows,ncols for...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online