代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
cm_f34.m
% script that generates the figure 3.4 of Carrier modulation chapter
snrindB=0:0.25:18;
for i=1:length(snrindB),
snr=10^(0.1*snrindB(i));
P2(i)=Qfunct(sqrt(2*snr));
P4(i)=2*Qfunct(sqrt(4*sn
pai.cpp
#include
#include
float main()
{int s;
float n, pi,t;
s=1;
n=1.0;
t=1.0;
pi=0.0;
while(fabs(t)>=1e-6)
{pi=pi+t;
n=n+2;
s=-s;
t=s/n;
}
pi=4*pi;
printf("
parte4y5.m
disp('Calcular una trayectoria en coordenadas articulares')
clear all
% Para probar con valores concretos:
t1=pi/2; t2=pi/2; t3=pi/2; t4=pi/2; % Estos valores son irrelevantes
l1=1.8; l2=0.8; l3
parte2y3.m
disp('Robot3 - Obtenci髇 del modelo cinem醫ico (apartado 3)')
clear all
% Usando valores simb髄icos
syms t1 t2 t3 real;
syms l1 l2 l3 l4 real;
% Para probar valores concretos de angulos:
% t1=p
gngauss.m
function[gsrv1,gsrv2]=gngauss(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;
gsrv1=m+z*cos(2*pi*u);
gsrv2=m
cfft512c.asm
;============================================================================
;
; File Name : cfft512c.asm
;
; Originator : Digital Control Systems Group
; Texas Instrume
exm15.m
clf reset
x=-2*pi:0.4:2*pi;
y1=sin(x);y2=cos(x);
plot(x,y1,x,y2,'g',x,zeros(size(x)),'k:')
hg=findobj(gca,'Color','g') %在当前轴上寻找绿线的句柄
set(hg,'Color','r')
y3=get(hc(1),'ydata')+0.3;
set(hc(1),
exm7.m
t=(-2*pi:pi/60:2*pi)+eps;
y=sin(t)./t;
hline=plot(t,y); %绘制Sa曲线
cm=uicontextmenu; %创建现场菜单
%制作具体菜单项,定义相应的回调
uimenu(cm,'label','Red','callback','set(hline,''color'',''r''),')
uimen
ex312.m
%*********************************************************
%程序:EX312.M
%功能:坐标轴设置函数axis使用实例
%*********************************************************
close all %关闭所有窗口
subplot(1,3,1)
ex202.m
%********************************************************
%程序:EX202.M
%功能:高级绘图函数plot绘图实例
%********************************************************
x=0:0.4*pi:2*pi; %定义x坐标轴范围及刻度
y1=