实验一:MATLAB的开发环境

  • 格式:doc
  • 大小:153.50 KB
  • 文档页数:4

实验一:MATLAB的开发环境
一、实验目的
1、熟悉Matlab 的基本界面;
2、了解MATLAB的帮助系统;
3、了解Matlab 的路径搜索;
4、基本掌握在MATLAB命令窗口中进行语言要素的基本操作。

二、实验仪器
1、计算机
2、MATLAB 软件环境
三、实验内容
1、熟悉MATLAB 主界面,工具栏及各窗口;
2、在命令窗口中练习常用指令;
3、建立工作目录和搜索路径;
4、MATLAB帮助系统
(1)帮助浏览器使用
(2)Help函数和doc函数
5、演示程序(demo)
四、实验过程
1.略。

2.例如:>> x1=sqrt(5),x2=1.37,y=3/x2
x1 =
2.23606797749979
x2 =
1.37000000000000
y =
2.18978102189781
>> a=[123;456;789]
a =
123
456
789
>> x=[-1.3 sqrt(3) (1+2+3)/5*4]
x =
-1.30000000000000 1.73205080756888 4.80000000000000
3、建立工作目录和搜索路径
D:\soft\Matlab6p5FULL\bin\win32\liushun
4、MATLAB帮助系统
(1)帮助浏览器使用
(2)Help函数和doc函数
Help指令:
>> help
HELP topics:
win32\liushun - (No table of contents file) matlab\general - General purpose commands.
matlab\ops - Operators and special characters.
matlab\lang - Programming language constructs.
matlab\elmat - Elementary matrices and matrix manipulation. matlab\elfun - Elementary math functions.
matlab\specfun - Specialized math functions.
matlab\matfun - Matrix functions - numerical linear algebra. matlab\datafun - Data analysis and Fourier transforms.
matlab\audio - Audio support.
matlab\polyfun - Interpolation and polynomials.
matlab\funfun - Function functions and ODE solvers.
matlab\sparfun - Sparse matrices.
matlab\graph2d - Two dimensional graphs.
matlab\graph3d - Three dimensional graphs.
matlab\specgraph - Specialized graphs.
matlab\graphics - Handle Graphics.
matlab\uitools - Graphical user interface tools.
matlab\strfun - Character strings.
matlab\iofun - File input/output.
matlab\timefun - Time and dates.
…………
Doc指令:
>> doc zeros
5、演示程序(demo)
演示的项目是复数函数图形【Plots of complex functions】
复数z的三次方【z^3】:
五、实验的收获、心得、问题、困难和建议
本次实验是我第一次使用MATLAB软件,当然也遇到了一些问题,不过都在老师的帮助下解决了。

使我对MATLAB软件有了初步的了解,这次我都是对着书输入一些不熟悉的指令,显得很没有效率,我想以后要多记一些指令和函数,才能为以后的学习和工作带来益处。