代码搜索结果

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

chap10_6s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 1, sys=mdlDerivatives(t,x,u); case 3, sys=mdlOutputs(t,x,u); case

chap10_1s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 3, sys=mdlOutputs(t,x,u); case {2,4,9} sys=[]; otherwise erro

chap10_5s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 3, sys=mdlOutputs(t,x,u); case {2,4,9} sys=[]; otherwise erro

chap3_10plot.m

clear all; close all; L1=-pi/6; L2=pi/6; L=L2-L1; T=L*1/1000; x=L1:T:L2; figure(1); for i=1:1:3 gs=-[(x+pi/6-(i-1)*pi/6)/(pi/12)].^2; u=exp(gs); hold on; plot(x,u); end xlab

gausamp.m

function[g1,g2]=gausamp(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; g1=m+z*cos(2*pi*u); g2=m+z*sin(2*pi*u);

gausamp.m

function[g1,g2]=gausamp(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; g1=m+z*cos(2*pi*u); g2=m+z*sin(2*pi*u);

cw1.m

%discrete-time forier trasnform computation %read in the desired lenght dtft k = 255 %seat in numerator and denumerator coefficiencs num =[0.0518 -0.1553 0.1553 0.0518] den =[1 1.282 1.0388 0.34

a_filter_design.m

% Design filter by specifying delay in units and % looking at mag and phase response % Good default values for fft_size = 128 and num_carriers = 32 delay_1 = 6; % 6 attenuation_1 = 0.35; %

sns_fur_ser.m

%periodic signal t=[-8 -8 -6 -6 0 0 2 2 8 8 10 10]; x=[0 1 1 0 0 1 1 0 0 1 1 0]; % figure(1); subplot(2,1,1),plot (t,x); axis ([-10 12 -1.5 1.5]); xlabel('timt (t) -t'); ylabel('x(t)'); titl

chap3_10plot.m

clear all; close all; L1=-pi/6; L2=pi/6; L=L2-L1; T=L*1/1000; x=L1:T:L2; figure(1); for i=1:1:3 gs=-[(x+pi/6-(i-1)*pi/6)/(pi/12)].^2; u=exp(gs); hold on; plot(x,u); end xlab