Command history 人MATLAB 回x幻 File Edit Debug Desktop Window Help 0心哈电口阵子目? Current Directory.C:Program FilesWATLABR2006alwork Shortcuts How to Add What's New Current Directory-MATLAB\R2006a\work X Command Window 包半雨民· All FiesL File Type Size ar Records the commands you issue in the command window ● When you exit the command window, Current Directory Workspace or when you issue the clc command, Command History 白-4--2/4/09 6:01AM-4 the command window is cleared clear clc But the command history remains 5+2 -5*2 -5/2 4.3+24+3业 2.53*8/2.6 >cos (pi) 6,3-2,1045 3.6^2 ans 1+22 sqrt (5) -cos (pi) Command History Window Start
Command History Command History Command History • Records the commands you issue in the command window • When you exit the command window, or when you issue the clc command, the command window is cleared • But the command history remains Command History Window
◆ Command History MATLAB -回x File Edit Debug Desktop Window Help D≥¥b意o算Y且?Current Drectory:C:Program FiesMATLABR2O06 alwork习口包 Shortcuts D图How to Add▣What's New Current Directory-...MATLAB\R2006a\work Command Window 白呼阳包· >3.6^2 All FilesL Fie Type Size ans Command History Window 12,9600 >122 Current Directory Workspace You can transfer commands Command History 白4--2/4/09 6:01AM-- clear >sqrt (5) from the command history clc …5+2 ans to the command window 一5*2 -5/2 2.2B61 4.3+2*(4+3) Double click on a command -2,53*8/2.6 >>c03 p1) -6.3-2.1045 -3.6^2 ans Click and drag 一1+2^2 sqrt (5) -1 cos (pi) ◆Start
Command History Command History • You can transfer commands from the command history to the command window – Double click on a command – Click and drag Command History Window
Workspace Window MATLAB ✉口× Eile Edit View Grophics Debug Desktop Window Help ☐3名白B等?C:Program FilesWATLAB704work ] Shortcuts How to Add Vhat's New Workspace × Command Window 尚测画卧 Name Value Size Keeps track of the variables 田E 3.3264e+031 1×1 田c 3e+H008 1×1 you've defined 田m 3.696e+014 1×1 Name Workspace Window Value Class date type Currert Directory workspace Size size of the variable Command History × E=E★3600*24 -Bytes c-3e8 m=E/c2 ● You may need to right click on E-385e24 ala the name bar and select size and E-385e24 bytes in order to see these E一E★3600★24 c-3e8 parameters m-E/c2 么Start
Workspace Window Workspace Window Workspace Window • Keeps track of the variables you’ve defined – Name – Value – Class % date type – Size % size of the variable – Bytes • You may need to right click on the name bar and select size and bytes in order to see these parameters
Workspace Window 人MATLAB -▣× File Edit View Graphics Debug Desktop Window Help ☐36电色算Y?C:Program Files\MATLAB704work 国 Shortcuts How to Add a]What's New Workspace Command Window 省国迥 昌 Base 3.8500e+026 Name△ Value Class 田E 3.3264e+031 double >>E=E*3600★24 田c 3e+008 double 田m 3.696e+014 double E- When you define 3.3264e+031 variables in the >>c=3e8 command Current Directory Workspace Command History C= window,they E-E★3600*24 a=3e8 300000000 are listed in the m=E/c2 E=385e24 >m-E/c2 workspace clc window E=385e24 m= E=E*3600*24 c=3e8 3.6960e+014 m-E/c^2 么Start
When you define variables in the command window, they are listed in the workspace window Workspace Window Workspace Window
Workspace Window 大MATLAB ▣× File Edit Debug Desktop Window Help 口子毫等≤? C:Program FilesWATLAB704work 色 Shortcuts How to Add What's New Workspace Command window 省国坦备马 四 Stack: Base >>A=5 Name∠Value Size Bytes Class A- Scalar 由A 5 1×1 8 double 5 田B [1234] 1×4 32 double >>B-[1,2,3,4】 田C <3x4 double> 3x4 96 double B= 1 2 3 4 >>B=[12341 Vector B= 1 2 3 4 Current Directory Workspace >>C=[1234:10203040:5101520] Command History C- c=3e8 2 3 4 m-E/c^2 10 20 30 40 2-D clear,clc 10 15 20 Matrix format compact >> clear,clc A=5 B-[1,2,3,4] B=[1234] C=[1234:10203040:5- Start
Scalar Vector 2-D Matrix Workspace Window Workspace Window