代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
exp2_3.m
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)
hrollfcoef.m
% Program 3-3
% hrollfcoef.m
%
% Generate coefficients of Nyquist filter
%
% programmed by H.Harada
%
function [xh] = hrollfcoef(irfn,ipoint,sr,alfs,ncc)
%****************** variables ****
exp2_3_.m
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'r-.s')
% r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色)
%
exp2_5_.m
%图形文字标示命令的使用
clear
close all
clc
t=[0:pi/20:5*pi];
plot(t,sin(t),'r:*')
axis([0 5*pi -1.5 1.5 ])
%给x轴和y轴命名
xlabel('t(deg)')
ylabel('magnitude')
%给图形加标题
title('sine wave from zero to 5\pi')
exp2_3.m
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)
quadeg1.m
%微积分例1:一元函数求导(diff,gradient)
clear;close;
x=-2*pi:0.1:2*pi;
y=sin(x);
dy=diff(y)./diff(x);
plot(x,y,x(1:length(x)-1),dy);
hold on;
yx =gradient(y,x);
plot(x,yx,'ro');
wt2.m
function wr = wt2(dat,c,pmn,pmx,m)
% The function WT2 generates a 2-D Morlet Wavelet Transform
% of data dat(n,1), where n specifies the length of time series
% and it must be even.
%
% The out
exa060603.m
%----------------------------------------------------------------------------
% exa060603.m, for example 6.6.3;
% To design IIR Butteworth bandstop DF by analog-lowpass,
% -------------------------
exa011004_sinc.m
%-----------------------------------------------------------------
% exa011004_sinc.m, for example 1.10.4
% to generate the sinc function.
% 产生一 sinc 函数;
%-----------------------
exa050501.m
%------------------------------------------------------------------------
% exa050501.m, for example 5.5.1 and fig5.5.1
% to explain the spectra factorization
%------------------------------------