代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
1.误差性能曲面和等高线.m
[h0,h1]=meshgrid([-4:0.2:4]); %确定滤波器系数矩阵H(n)的范围
J=0.55+h0.^2+h1.^2+2*h0.*h1*cos(pi/8)-sqrt(2)*h0*cos(pi/10)-sqrt(2)*h1*cos(pi/40*9);
%计算各组系数下的误差性能J(H)
figure(1);
surf
makepulse.m
function pulse = makepulse(varargin)
%MAKEPULSE Modulation impulse design.
% H = MAKEPULSE('PropertyName',PropertyValue,...) returns the impulse
% response of desired modulation impulse. All the
exp2_3_.m
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'b:square')
% 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)
ch2_3.txt
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'b:square')
% r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色)
%
ch2_1.txt
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)
ch2_2.txt
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'b:square')
% r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色)
%
ch2_7.txt
%图形文字标示命令的使用
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')
shiyan.asv
close all;clear all;clc;
t=0:0.01:4*pi;
f=100;
a=2;
ut1=a*exp(j*2*pi*f*t);
ut2=a*exp(j*2*pi*f*t+5pi/3);
ut3=a*exp(j*2*pi*f*t+pi/2);
figure;subplot(3,1,1),plot(t,ut1);
subplot(3,1,2),plot(t,ut2