《2.Matlab数据处理与分析_01.pptVIP

  • 1
  • 0
  • 约2.86千字
  • 约 14页
  • 2017-01-01 发布于北京
  • 举报
《2.Matlab数据处理与分析_01

MATLAB数据处理与分析 胡小健 仲恺农业工程学院 计算科学系 第一讲 Welcome to Matlab What Is MATLAB?MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include: ?Math and computation ? Algorithm development ? Data acquisition ? Modeling, simulation ? Data analysis, exploration, and visualization ? Scientific and engineering graphics ? Application development, including graphical user interface building 1.1通过实例走进Matlab 例1-1使用函数magic生成一个魔方矩阵: mag=magic(3) mag = 8 1 6 3 5 7 4 9 2 例1-2使用函数ones生成一个元素全是1的矩阵: matrB = ones(3) matrB = 1 1 1 1 1 1 1 1 1 例1-4矩阵相加: mag+matrB ans = 9 2 7 4 6 8 5 10 3 例1-5二维曲线绘制: t=linspace(0,10*pi); y=sin(t); plot(t,y) 例1-6三维曲线绘制: t=linspace(0,10*pi); x=sin(t); y=cos(t); z = t; plot3(x,y,z) D=[0:0.1:6]; %创建向量D [X,Y]=meshgrid(D); %创建向量X、Y并赋值为D Z= 3-((X-3).^2+(Y-3).^2); surf(X,Y,Z) %绘制曲面图 axis off %关闭坐标轴 MATLAB绘图演示1 MATLAB绘图演示2 MATLAB绘图演示3 MATLAB绘图演示4 MATLAB绘图演示4 MATLAB绘图演示5 Desktop Tools and Development Environment * Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 例1-6绘制三维曲面: Evaluation only. Created with As

文档评论(0)

1亿VIP精品文档

相关文档