代码搜索结果

找到约 36,166 项符合 Raspberry Pi 的代码

chapter4_1.m

clc clear all close all x1=[5 9 20] plot(x1) x1=0:0.1:2*pi; y1=sin(x1); %y1为x1的正弦函数 plot(x1,y1); x=0:0.1:2*pi; plot(x,sin(x),x,cos(x),x,sin(3*x)) x=0:0.1:2*pi;

chapter4_5.m

clear all close all clc figure x1=0:0.1:2*pi; plot(x1,sin(x1), 'r-') hold on x2=-pi:.1:pi; plot(x2,cos(x2), 'b-') legend('sin(x)', 'cos(x)') grid on xlabel('旋转角度\omega

chapter3_1.m

clear all a=sym(sin(2) ) %创建符号常量,注意和 >>a=sin(2)的区别 a1=2*sqrt(5)+pi %创建数值常量 a2=sym('2*sqrt(5)+pi') %创建符号常量 a3=sym(2*sqrt(5)+pi) %按最接近的有理数型表示符号常量 a4=sym(2*sqrt

chapter4_1.m

clc clear all close all x1=[5 9 20] plot(x1) x1=0:0.1:2*pi; y1=sin(x1); %y1为x1的正弦函数 plot(x1,y1); x=0:0.1:2*pi; plot(x,sin(x),x,cos(x),x,sin(3*x)) x=0:0.1:2*pi;

chapter4_5.m

clear all close all clc figure x1=0:0.1:2*pi; plot(x1,sin(x1), 'r-') hold on x2=-pi:.1:pi; plot(x2,cos(x2), 'b-') legend('sin(x)', 'cos(x)') grid on xlabel('旋转角度\omega

pi_to_pi.m

function angle = pi_to_pi(angle) %function angle = pi_to_pi(angle) % Input: array of angles. % Tim Bailey 2000 %angle = mod(angle, 2*pi); % Avoid mod() as angles are (nearly) always bounded

algo0802.cpp

WORD_b* AllocBuddy (FreeList &avail, int n) { // 算法8.2 // avail[0..m]为可利用空间表,n为申请分配量,若有不小于n的空闲块, // 则分配相应的存储块,并返回其首地址;否则返回NULL WORD_b *pa, *pre, *suc, *pi; for (int k=0; k

ex14_8.m

% EX14_8.M Perform 2D symbolic integration of the function % x*sin(y)+y*cos(x) over fixed limits % pi < y < 2pi, 0 < x < pi inty=int('x*sin(y)+y*cos(x)','y',pi,2*pi) % Inner integral intx=in

ex8_2.m

% EX8_2.M Plot the Fourier series of the function f(t) % f(t)=0 -pi < t < 0 % f(t)=t 0 < t < pi % % Plot f(t) for 5 and 20 terms in the series clear t =[-pi:.031:pi]; % Ti

clspec2.m

% CLSPEC2.M Plot the positive amplitude spectrum and the % Fourier series representation for the pulse train with % A=1, period T=2*pi, and pulse width tau=pi/2. n=1:10;