matrices - disp(' -------------- Figure A.13')A=[1 3;5 9];...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Appendix F: MATLAB Basics, Section A.3%% The MATLAB use of matrices described in Section A.3 % includes Figures A.12 - A.17. After each subtopic, a % pause is inserted to allow you to inspect the output. Hit % the space bar (or any other key) to continue to the next % subtopic.%clearformat% -------------- Figure A.12disp(' -------------- Figure A.12')A=[1,-4*j,sqrt(2);log(-1) sin(pi/2) cos(pi/3)asin(0.5),acos(0.8) exp(0.8)]A=[1 2;4 5]pause%% -------------- Figure A.13
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: disp(' -------------- Figure A.13')A=[1 3;5 9]; B=[4 -7;10 0];A+Bb=[1;5];A*bA'pause %% -------------- Figure A.14disp(' -------------- Figure A.14') x=[5;pi;sin(pi/2)];y=[exp(-0.5);-13;pi^2];x'*yx*y'pause %% -------------- Figure A.15disp(' -------------- Figure A.15')A=[1;2;3]; B=[-6;7;10];A.*BA.^2pause %% -------------- Figure A.17disp(' -------------- Figure A.17')x=[0:0.1:1]'; y=x.*sin(x);[x,y]...
View Full Document

This note was uploaded on 12/01/2009 for the course Q q taught by Professor Q during the Spring '09 term at Universidad Autonoma de Nuevo Leon - School of Business.

Ask a homework question - tutors are online