Experiment 1 Use of MATLAB

        

PracticalOne  MATLABTargetUse

  • Purpose:
  1. Master how to install MATLAB
  2. Master how to start and exit MATLAB
  3. Familiar with the components of the MATLAB operating interface
  4. Familiar with the writing rules of MATLAB expressions and the use of common functions
  5. Familiar with the MATLAB help system
  • laboratory apparatus
  1. computer
  2. 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:

 

Guess you like

Origin blog.csdn.net/MYSELFWJC/article/details/131803452