正在加载图片...
MATLAB Lecture 8 School of Mathematical Sciences Xiamen University http:/gdjpkc.xmu.edu.cn File Edit yiew Insert Tool: Desktop Lindow Help →日回长日国 一 Plot of sinx vsxytitle x轴)一a5 Plot the curve with x= asin mt, y=a cos nt over t E[0, 2T while a=8, m=2 and >t= linspace( 0, 2*pi); generates a row vector of 100 linearly equally spaced points between 0 and 2 T >X=a°sin(m*t); >y=a°cos(n°t) plot(x, y, 'b-7) color blue, line style"- FIgure 1 File Edit view Insert Tools Desktop Window Help y DG副舀心回|国| 10 10 Lec8-4MATLAB Lecture 8  School of Mathematical Sciences Xiamen University  http://gdjpkc.xmu.edu.cn  Lec8­4  Plot the curve with x = a sin mt, y = a cos nt over t Œ[0, 2p ] while a=8,  m=2  and  n=5.  >> t = linspace(0,2*pi);  % generates a row vector of 100 linearly equally spaced…  points between 0 and 2p .  >> a=8;  >> m=2;  >> n=5;  >> x = a*sin(m*t);  >> y = a*cos(n*t); >> plot (x, y, ‘b­’) % color blue, line style ‘­’
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有