%函数调用绘图 clear,close all x=rand(2,2); y=humps(x); plot(y) figure(2) plot(x,y)
Windows绘图 源代码
汇集 Windows绘图 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
%例36-5 离散数据点直接绘图 x=sort(rand(1,10)); y=sort(rand(1,10)); plot(x,y)
%例36-9 半对数坐标轴绘图 x=-1:0.1:1; y=exp(x).*cos(x); subplot(2,1,1) semilogy(x,y,'b-.') subplot(2,1,2) plot(x,y,'r-.')
%例23-4 极坐标绘图函数polar theta=0:0.05*pi:2*pi; r1=sin(theta); r2=cos(theta); polar(theta,r1,theta,r2) polar(theta,[r1;r2]) polar(…
Build Log --------------------Configuration: sam绘图 - Win32 Debug-------------------- Command Lines Creating temporary file …
双Y轴图形的绘制 t = 0:pi/20:2*pi; y = exp(sin(t)); plotyy(t,y,t,y,'plot','stem')
按缺省纵横比绘制的图形 t = 0:pi/20:2*pi; plot(sin(t),2*cos(t)) grid on
%矩阵图形的绘制 x1=[1 2 3;4 5 6]; plot(x1) x2=peaks; %产生一个49*49的矩阵 plot(x2)
%例36-5 离散数据点直接绘图 x=sort(rand(1,10)); y=sort(rand(1,10)); plot(x,y)
%例36-9 半对数坐标轴绘图 x=-1:0.1:1; y=exp(x).*cos(x); subplot(2,1,1) semilogy(x,y,'b-.') subplot(2,1,2) plot(x,y,'r-.')