正在加载图片...
MATLAB Lecture 8 School of Mathematical Sciences Xiamen Univer http://gdjpkc.xmu.edu.cn v Polar Plots polar(THETA, RHO)makes a plot using polar coordinates of the angle THETA,in radians versus the radius rho g=0.5 >> theta= linspace(0, 2*pi, 51) %generates 51 linearly equally spaced points polar(theta, gain, r-') %color red, line style solid title('\bf Gain versus angle \theta):%boldface, Theta will be display as 8 9Figure I Eile Edit Lie Insert Tools Desktop lindow Help theta Ezplot Function--Easy to use function plotter It is usually used to plot a curve expressed in implicit formula ezplot( FUn) plots the function FUN(X) over the default domain-2 pi<X<2 pi ezplot(FUN, [A, BD plots FUN(X)over A<X<B Plot the function x2-2x+1, over x∈[-2x,2丌 eplo(x^2-2*x+1) Figure 1 Edt互 N Insert o1s正 estep Rindos He D母↓间平日口MATLAB Lecture 8  School of Mathematical Sciences Xiamen University  http://gdjpkc.xmu.edu.cn  Lec8­5  ¸ Polar Plots polar(THETA,  RHO) makes  a plot  using polar coordinates  of the angle THETA,  in  radians, versus the radius RHO. >> g=0.5;  >> theta = linspace(0,2*pi,51);  %generates 51 linearly equally spaced points…  between 0 and 2p .  >> gain = 2*g*(1+cos(theta)); >> polar (theta, gain, ‘r­’) %color red, line style solid‘­’ >> title (‘\bf Gain versus angle \theta’);  %boldface, \theta will be display as q ¸ Ezplot Function ­­ Easy to use function plotter It is usually used to plot a curve expressed in implicit formula.  ezplot(FUN) plots the function FUN(X) over the default domain ­2*pi < X < 2*pi.  ezplot (FUN,[A,B]) plots FUN(X) over A < X < B.  Plot the function  2 x - 2x +1, over xŒ[-2p, 2p ].  >> ezplot('x^2 ­ 2*x + 1');
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有