代码搜索结果

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

chap10_5plant.m

%S-function for continuous state equation function [sys,x0,str,ts]=s_function(t,x,u,flag) switch flag, %Initialization case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 1, sys=mdlDer

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

gamicheval.m

function [sol,val] = gaMichEval(sol,options) val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2)); %G=zeros(0); %val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;

program_3_1.m

% Program 3_1 % Discrete-Time Fourier Transform Computation % % Read in the desired number of frequency samples k = input('Number of frequency points = '); % Read in the numerator and denominator

program_15_5.m

% Program 15_5 % Development of an AR Model of an FIR Filter % b = remez(13, [0 0.5 0.6 1], [1 1 0 0]); [h,w] = freqz(b,1,512); [d,E] = lpc(b,7); [h1,w] = freqz(sqrt(E*length(b)),d,512); plot(w

program_11_13.m

% Program 11_13 % DFT Sample Computation Using CZT % n = 0:31; x = sin(2*pi*11*n/64); A = exp(i*2*pi*84/512); V = exp(-i*2*pi/512); XC = czt(x, 8, V, A); disp('CFT Samples') disp(abs(XC));

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(蓝色) %