ans = 1. -->A=[1 4 7; 2 5 8; 3 6 9] A = 1. 4. 7. 2. 5. 8. 3. 6. 9. -->rref(A) ans = 1. 0. - 1. 0. 1. 2. 0. 0. 0. -->B=A' B = 1. 2. 3. 4. 5. 6. 7. 8. 9. -->rref(B) ans = 1. 0. - 1. 0. 1. 2. 0. 0. 0. -->W=[1 1; 1 -1] W = 1. 1. 1. - 1. -->b=[10;2] b = 10. 2. -->M=[W b] M = 1. 1. 10. 1. - 1. 2. -->rref(M) ans = 1. 0. 6. 0. 1. 4. -->//r2 += -r1 -->M(1,2) ans = 1. -->M(2,:) ans = 1. - 1. 2. -->M(2,:)=M(2,:)-M(1,:) M = 1. 1. 10. 0. - 2. - 8. -->M(2. !--error 3 Waiting for right parenthesis. -->M(2,:)=(-1/2)*M(2,:) M = 1. 1. 10. 0. 1. 4. -->M(1,:)=M(1,:)-M(2,:) M = 1. 0. 6. 0. 1. 4. -->W W = 1. 1. 1. - 1. -->inverse(W) !--error 4 Undefined variable: inverse -->inv(W) ans = 0.5 0.5 0.5 - 0.5 -->inv(W)*b ans = 6. 4. -->W^(-1) ans = 0.5 0.5 0.5 - 0.5 -->W^2 ans = 2. 0. 0. 2. -->W^3 ans = 2. 2. 2. - 2. -->S=[1 2;3 4] S = 1. 2. 3. 4. -->S*S ans = 7. 10. 15. 22. -->S .*S ans = 1. 4. 9. 16. -->x=1:5 x = 1. 2. 3. 4. 5. -->x.*x ans = 1. 4. 9. 16. 25. -->x.^2 ans = 1. 4. 9. 16. 25. -->x=5:7.7 x = 5. 6. 7. -->x=2:3:10 x = 2. 5. 8. -->zeros(2,3) ans = 0. 0. 0. 0. 0. 0. -->ones(2,3) ans = 1. 1. 1. 1. 1. 1. -->ones(2,3)*%pi ans = 3.1415927 3.1415927 3.1415927 3.1415927 3.1415927 3.1415927 -->%pi=7 !--error 13 Redefining permanent variable. -->t=0:%pi/100:2*%pi; -->size(t) ans = 1. 201. -->y=sin(t); -->size(y) ans = 1. 201. -->plot(t,y) -->clf -->plot(t,y,'rx-') -->clf; plot(t,y,'x:m') -->help plot -->e !--error 4 Undefined variable: e -->exp(1) ans = 2.7182818 -->k=0.008; -->exp(2k) !--error 276 Missing operator, comma, or semicolon. -->exp(2*k) ans = 1.0161287 -->exp(2:10) ans = column 1 to 3 7.3890561 20.085537 54.59815 column 4 to 6 148.41316 403.42879 1096.6332 column 7 to 9 2980.958 8103.0839 22026.466 -->exp(20:-1:10) ans = column 1 to 3 4.852D+08 1.785D+08 65659969. column 4 to 6 24154953. 8886110.5 3269017.4 column 7 to 9 1202604.3 442413.39 162754.79 column 10 to 11 59874.142 22026.466 -->size(exp(20:-1:10)) ans = 1. 11. -->A A = 1. 4. 7. 2. 5. 8. 3. 6. 9. -->W W = 1. 1. 1. - 1. -->b b = 10. 2. -->W\b ans = 6. 4. -->eye(5,5) ans = 1. 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 1. -->sqrt(-1) ans = i -->%i %i = i -->%t %t = T -->%f %f = F -->%s %s = s -->for i=1:3:9, -->i -->end i = 1. i = 4. i = 7. -->diary(0)