Presentation is loading. Please wait.

Presentation is loading. Please wait.

1.函数 2.程序 3.图形 目的:掌握Matlab作平面曲线图的方法与技巧

Similar presentations


Presentation on theme: "1.函数 2.程序 3.图形 目的:掌握Matlab作平面曲线图的方法与技巧"— Presentation transcript:

1 1.函数 2.程序 3.图形 目的:掌握Matlab作平面曲线图的方法与技巧
第一单元 第3课 实验 基本初等函数的绘图 1.函数 2.程序 3.图形 目的:掌握Matlab作平面曲线图的方法与技巧

2 1.函数 exp(x) sin(x) csc(x) cos(x) tan(x) cot(x) arcsin(x) arccos(x)

3 2.程序 function [ output_args ] = Experiment01( input_args ) %一元函数的图形 clc; close all; x=0:0.1:2; y1=x.^2; y2=sqrt(x); figure(1); plot(x,y1,':',x,y2,'-'); grid on; figure(2); ezplot('cos(t)','sin(t)',[0,2*pi]); grid on; figure(3); theta=0:0.1:2*pi; rho=3*cos(3*theta); polar(theta,rho); grid on; hold on;

4 ezpolar('3*cos(3*t)'); figure(4); ezplot('(x^2+y^2)^2-x^2+y^2',[-1,1,-0.5,0.5]); grid on; figure(5); ezplot('2*cos(t)','sin(t)',[0,2*pi]); grid on; figure(6); ezplot('2*cos(t)^3','2*sin(t)^3',[0,2*pi]); grid on; figure(7); ezplot('2*(t-sin(t))','2*(1-cos(t))',[0,4*pi]); grid on; figure(8); rho=2*(1-cos(theta)); polar(theta,rho); figure(9); theta=0:0.1:8*pi; rho=exp(0.1*theta); polar(theta,rho); end

5 3.图形


Download ppt "1.函数 2.程序 3.图形 目的:掌握Matlab作平面曲线图的方法与技巧"

Similar presentations


Ads by Google