PracticalOne MATLABTargetUse
- Purpose:
- Master how to install MATLAB
- Master how to start and exit MATLAB
- Familiar with the components of the MATLAB operating interface
- Familiar with the writing rules of MATLAB expressions and the use of common functions
- Familiar with the MATLAB help system
- laboratory apparatus
- computer
- MATLAB software environment
- Experiment content
1. Enter the following command in the MATLAB command window and observe the contents of the workspace window
>>x=0:pi/10:2*pi;
>>y=sin(x);
Program:>>x=0:pi/10:2*pi;
>>y=sin(x);
result:
2. Enter the following commands in the MATLAB command window and compare the similarities and differences between the two commands.
>>x=5,y=x+10
>> x=5,y=x+10;
program:
>>x=5,y=x+10
>> x=5,y=x+10;
result:
3. Use the help function of MATLAB to query the functions and usage of inv, plot, max and round functions.
program:
>>help inv
>>help plot
>>help max
>>help round
result: