help randcol No help found for randcol.m. help randcol there's no help for you help randcol RANDCOL column of random numbers help randcol RANDCOL column of random numbers Author: J M Fitzpatrick Creation: Sep 7, 2009 help randcol RANDCOL column of random numbers Author: J M Fitzpatrick Creation: Sep 7, 2009 help randcol RANDCOL column of random numbers Author: J M Fitzpatrick Creation: Sep 7, 2009 go away! 100*randcol(4) ans = 8.7129 2.0218 83.262 77.816 round(100*randcol(4)) ans = 87 98 80 46 A = [1 2 3;4 5 6] A = 1 2 3 4 5 6 B = [1 2 3;5 6 7] B = 1 2 3 5 6 7 A.*A ans = 1 4 9 16 25 36 C = [1 2;3 4] C = 1 2 3 4 A.*C {??? Error using ==> times Matrix dimensions must agree. } A*C {??? Error using ==> mtimes Inner matrix dimensions must agree. } C*A ans = 9 12 15 19 26 33 A = [1 2 3;4 5 6;7 8 9] A = 1 2 3 4 5 6 7 8 9 B = [4 3 6;7 3 8;4 7 3] B = 4 3 6 7 3 8 4 7 3 A*B ans = 30 30 31 75 69 82 120 108 133 B*A ans = 58 71 84 75 93 111 53 67 81 A.*B ans = 4 6 18 28 15 48 28 56 27 B.*A ans = 4 6 18 28 15 48 28 56 27 3+4 ans = 7 plus(3,4) ans = 7 3+(5+9) ans = 17 (3+5)+9 ans = 17 3+5+9 ans = 17 u = [1 2],v = [1 4]' u = 1 2 v = 1 4 dot(u,v) ans = 9 dot(u,v') ans = 9 u,v u = 1 2 v = 1 4 u*v ans = 9 w = [1 2 3] w = 1 2 3 dot(u,w) {??? Error using ==> dot at 30 A and B must be same size. } length(u) ans = 2 length(w) ans = 3 eye(3) ans = 1 0 0 0 1 0 0 0 1 diary off