代码搜索结果

找到约 10,000 项符合 Q 的代码

q252.m

%《MATLAB在电子信息课程中的应用》第二章第五节演示程序二q252 % 三维绘图和屏幕控制 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 clf disp('三维曲线'),echo on pause, z=0:0.1:4*pi;x=cos(z);y=sin(z);plot3(x,y,z);shg pause, x=-8:0.5:8;y=x';X=one

q43.asv

%《MATLAB在电子信息课程中的应用》第四章第三节演示程序q43 % 多项式计算函数库 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 format disp(' ') disp('多项式四则运算'),disp(' '),pause disp('相乘:a=[2,4,6,8],b=[3,6,9],c=conv(a,b)'),pause;disp(' ')

q258.m

%This is a example for 2.2.2 [x,y] = meshgrid(-3:1:3); z = peaks(x,y); surf(x,y,z); [xi,yi] = meshgrid(-3:0.25:3); zi1 = interp2(x,y,z,xi,yi,'nearest'); zi2 = interp2(x,y,z,xi,yi,'bilinear'); z

q6015.m

%所有的有界符号函数均可以用门函数分段相加表示 ezplot('heaviside(t+1)',[-2,2]); ezplot('heaviside(t+1)-heaviside(t)',[-2,2],2);%门函数 y1=sym('(t+1)*(heaviside(t+1)-heaviside(t))'); ezplot(y1,[-1.2,1.2]) y2=sym('(-t+1)*

q2533.m

%画柱体 clf cylinder axis equal title('柱体') %figure(2) %t=0:pi/10:2*pi; %pause, %cylinder(2+cos(t)) echo off

q44.m

%《MATLAB在电子信息课程中的应用》第四章第四节演示程序q44 % 函数功能及数值积分函数库 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 disp('函数功能及数值积分函数库funfun'),disp(' ') disp('type humps'),pause,disp(' ') type humps,disp(' ') disp('绘制函数曲线')

q2517.m

%对数图形 x=0.01:0.01:100;y=log10(x); subplot(2,1,1) plot(x,y,'m-'),grid on pause,subplot(2,1,2) semilogx(x,y,'g-') xlabel('x') ylabel('y')

q6031.m

%LTI系统的冲激响应和阶跃响应 b=[8,3,1]; a=poly([0,-1+2i,-1-2i,-5]) t=0:0.1:8; g=tf(b,a); y1=impulse(g,t);%冲激响应 grid on plot(t,y1,'r') y2=step(g,t);hold on plot(t,y2) %阶跃响应

q45.m

%《MATLAB在电子信息课程中的应用》第四章第五节演示程序q45 % 字符串函数库 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 clear, echo on s='abyzABYZ0189' size(s) abs(s) setstr(abs(s)) dec2hex(abs(s)) s1=[' welcome ',s] s2 =['a=5

q2534.m

%色彩的渲染 clf;echo on x=-6:0.4:6;y=x; [x,y]=meshgrid(x,y); r=sqrt(x.^2+y.^2)+eps; z=sin(r)./r; surf(z);colormap(hsv); shading flat pause figure(2) surf(z);%colormap(hsv); colormap(copper); sh