代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
e0656.m
x=(-3*pi:pi/50:3*pi)+eps;y=sin(x).^2+cos(x);
lin=plot(x,y);
cm=uicontextmenu; %创建控制曲线颜色的快捷菜单,有红色、蓝色和绿色三个选择项
uimenu(cm,'label','Red','callback','set(lin,''color'',''r''),')
uimenu(cm,'label','
e0651.m
x=-3*pi:pi/10:3*pi; y = 1-sin(x).*cos(x);
Hndl=plot(x,y);grid on
set(gcf,'Color',[0 1 0.5]); %设置窗口背景为绿色
set(Hndl,'Color',[1 0 0]); %设置曲线颜色为红色
set(Hndl,'L
e0616.m
subplot(2,2,1);fplot('sind(x)',[-360 360]);title('sin(x)')
subplot(2,2,2);fplot('cosd(x)', [-360 360]);title(' cos(x)')
subplot(2,2,3);fplot('sinh(x)',[-2*pi 2*pi]);title(' sinh(x)')
subplot(2,2,4)
e0647.m
x=-2*pi:.1:2*pi;y=sin(x);
axes('GridLineStyle','-.','XLim',[ -2*pi,2*pi],'YLim',[-1,1]);
h=line(x,y,'LineStyle',':','Color','g');
xlabel('-\pi \leq \Theta \leq \pi')
ylabel('sin(\Theta)')
title('
e0611.m
t=0:pi/20:4*pi;y=exp(-0.2*t).*(cos(t)+i*sin(t));
subplot(2,2,1),plot(t,y); %只绘制实部图形
title('plot of complex function vs time');xlabel('t');ylabel('y(t)');
t=0:pi/20:4*pi;y=exp(-0.2*t).*(cos(t)+i*si
hrollfcoef.m
% hrollfcoef.m
% Generate coefficients of Nyquist filter
function [xh] = hrollfcoef(irfn,ipoint,sr,alfs,ncc)
%****************** variables *************************
% irfn : Number of symbols
iirfilter.m
function [b,a] = IIRfilter( ap,as,wp,ws ,fs) %定义函数其中返回参数b a为设计后的滤波器的分子分母的系数
T=1/fs
ws=2/T*tan(ws/2);
wp=2/T*tan(wp/2);
N=ceil(0.5*log10((10.^(as/10)-1)/(10.^(ap/10)-1))/log10(ws/wp
fff1.m
function [B,A] = fff1( ap,as,wp,ws ,fs) %程序中fs为抽样频率,输出[A,B]为滤波器的系数
T=1/fs;
ws=2/T*tan(ws/2); %频率修正
wp=2/T*tan(wp/2);
N=ceil((log10((10^(as/10)-1
mlf.m
function [e]=mlf(alf,bet,c,fi);
%
% MLF -- Mittag-Leffler function.
% MLF (alpha,beta,Z,P) is the Mittag-Leffler function E_{alpha,beta}(Z)
% evaluated with accuracy 10^(-P)