代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
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;
lmin.m
% lmin.m - find locations of voltage minima and maxima
%
% Usage: [lm,Zm] = lmin(ZL,Z0,type)
% [lm,Zm] = lmin(ZL,Z0) (equivalent to type='min')
%
% ZL = load impedance
% Z0 = lin
dslab.m
% dslab.m - solves for the TE-mode cutoff wavenumbers in a dielectric slab
%
% Usage: [u,v] = dslab(R,Nit)
% [u,v] = dslab(R) (equivalent to Nit=3)
%
% R = frequency radius = k0*a*N
fcs.m
% fcs.m - Fresnel integrals C(x) and S(x)
%
% Usage: F = fcs(x)
%
% x = vector or matrix of real numbers
% F = C(x) - jS(x) of same size as x
%
% notes: F(x) = C(x) - j*S(x) = int_0^x exp(-j*p
pizza.c
/* pizza.c -- uses defined constants in a pizza context */
#include
#define PI 3.14159
int main(void)
{
float area, circum, radius;
printf("What is the radius of your pizza?\
show_tan.c
#include
#include
void main(void)
{
double pi = 3.14159265;
printf("Tangent of pi is %f\n", tan(pi));
printf("Tangent of pi/4 is %f\n", tan(pi / 4.0));
}
pppp.m
%calculate RCF coefficient
%我共享一下原来用MATLAB里面自己写的求平方根升余弦滤波器系数的程序。
clear
clc
alpha=0.4;
fs=409600;
fb=fs/4;
Ts=1/fs;
Tb=1/fb;
M=fs/fb;
W=6;
N=M*W+1;
L=(N-1)/2;
for n=1:1:N
nT=(n-1-L)*Ts/
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;
shili05.m
function shili05
h0=figure('toolbar','none',...
'position',[200 150 450 250],...
'name','实例05');
t=0:pi/10:2*pi;
[x,y]=meshgrid(t);
subplot(2,2,1)
plot(sin(t),cos(t))
axis equal
sub
shili06.m
function shili06
h0=figure('toolbar','none',...
'position',[200 150 450 400],...
'name','实例06');
t=0:pi/10:2*pi;
h=plot(t,sin(t));
xlabel('t=0到2\pi','fontsize',16);
ylabel('sin(t)','fon