代码搜索:Raspberry Pi
找到约 10,000 项符合「Raspberry Pi」的源代码
代码结果 10,000
www.eeworm.com/read/391300/8410691
txt mch02-26.txt
同一个图形窗口中绘制多个子图
t = 0:pi/20:2*pi;
[x,y] = meshgrid(t);
subplot(2,2,1)
plot(sin(t),cos(t))
axis equal
subplot(2,2,2)
z = sin(x)+cos(y);
plot(t,z)
axis([0 2*pi -2 2])
subplot
www.eeworm.com/read/391300/8410703
txt mch02-05.txt
图形叠加
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
plot(x,y,'--ro','LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor','g',...
'MarkerSize',10)
hold on
t = 0:pi/100:2*p
www.eeworm.com/read/391300/8410720
txt mch02-20.txt
详细标示绘制的图形
xlabel('-\pi \leq \Theta \leq \pi')
ylabel('sin(\Theta)')
title('Plot of sin(\Theta)')
text(-pi/4,sin(-pi/4),'\leftarrow sin(-\pi\div4)',...
'HorizontalAlignment','left')
www.eeworm.com/read/192030/8410859
m subsref.m
function Pi = subsref(P,S)
% SUBSREF -- subscripting of matrix polynomial objects
%
% This function is not meant to be called by the user, except from
% subroutines residing in the @mpoly direc
www.eeworm.com/read/192030/8410866
m subsasgn.m
function Pi = subsasgn(P,S,B)
% SUBSASGN -- assignment to subscripted matrix polynomial
%
% This function is not meant to be called by the user. It is called by
% Matlab when a subscripted matr
www.eeworm.com/read/391249/8414182
c gaussian.c
#include
#define pi 3.1415
double
gaussian(double x)
{
double resu;
resu=-0.5*x*x;
resu=exp(resu);
resu=resu/sq
www.eeworm.com/read/291390/8422053
m hl6338.m
%N束线偏振光干涉的强度分布
clear
% lamda=1;%晶格长度
[x,y,z]=meshgrid(0:.02:3);%干涉场
N=4;%总光束数
phi=pi*[1/4,1/4,1/4,1/4];%各束光波矢与记录介质法线z的夹角1×N
phi1=sin(phi);
phi2=cos(phi);
alpha=pi*[1/4,3/4,5/4,7/4];%各束光的方位角,波矢
www.eeworm.com/read/291389/8422063
m band-pass.m
%%
%信号源
close all;clc;clear;
t = 0:1/100e6:1/1e4;
A=1;
x = A*sin(2*pi*24e6*t)+A*sin(2*pi*25e6*t)+A*sin(2*pi*23e6*t);
%%
%给出两种滤波器的设计方式,
%%方法1.采用FDATOOL设计,将参数存成.mat文件,使用时倒入滤波器参数即可得到b,a;
www.eeworm.com/read/291384/8422281
m filterdesign1.m
%%
%信号源
close all;clc;clear;
t = 0:1/100e6:1/1e4;
A=1;
x = A*sin(2*pi*24e6*t)+A*sin(2*pi*25e6*t)+A*sin(2*pi*23e6*t);
%%
%给出两种滤波器的设计方式,
%%方法1.采用FDATOOL设计,将参数存成.mat文件,使用时倒入滤波器参数即可得到b,a;
www.eeworm.com/read/191570/8427449
m example6_2.m
t=0:pi/100:4*pi;
s=sin(t+3*pi/4);
plot(s);
title('原始信号s');
%====================================
%对s进行小波分解:db1 3层
[c,l]=wavedec(s,3,'db1');
%====================================
%提取小波分解的低频系数a