代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
lxcaiyang.m
%连续信号的采样
f=10;
t=0:0.001:0.2;
x=cos(2*pi*f*t);
plot(t,x);
%%%%%%%%%%采样%%%%%%%%%%%%
Fs=50;
Ts=1/Fs;
n=0:20;
xn=cos(2*pi*f*n*Ts);
figure,stem(n,xn);
% W=(hanning(length(n)))';xn=xn.*W
somax.m
function somax
close all; load sdata;
hc = 20.* log10(abs(hc)) - 20*log10(noisefloor);
xxx=linspace(-pi/dkx,pi/dkx,size(hc,2));
yyy=linspace(-pi/dky,pi/dky,size(hc,2));
zzzc1=max(maz(hc)); zzzc2=min(
llh2ecef.m
function [X,Y,Z]=llh2ecef(lat,long,alt)
% This function will convert latitude, longitude, and
% altitude. Lat and long are in degrees with -lat=south
% of equator; -long=west of PM; altitude is
%
grav.m
function [gn,Gn]=grav(lat,alt)
% This will compute the gravity and gravitation for a
% location on the earth. Inputs are latitude in deg and
% altitude in meters. Outputs are in meters/s^2.
% Vect
llh2ecef.m
function [X,Y,Z]=llh2ecef(lat,long,alt)
% This function will convert latitude, longitude, and
% altitude. Lat and long are in degrees with -lat=south
% of equator; -long=west of PM; altitude is
%
grav.m
function [gn,Gn]=grav(lat,alt)
% This will compute the gravity and gravitation for a
% location on the earth. Inputs are latitude in deg and
% altitude in meters. Outputs are in meters/s^2.
% Vect
ex0425.m
%用罗盘图和羽毛图绘制复向量
theta=0:0.2:2*pi;
z=sin(theta).*exp(j*theta);
compass(z)
feather(z)
ex0413.m
%用plot3三维曲线绘图
x=0:0.1:20*pi;
plot3(x,sin(x),cos(x)) %按系统默认设置绘图
ex0412.m
%在图形中用ginput将点的坐标取出,并用gtext写字符串
x=0:0.1:2*pi;
plot(x,sin(x))
[m,n]=ginput(2) %取两点坐标
gtext('2\pi') %写2π
ex0410.m
%在图形窗口中添加文字标注
x=0:0.1:2*pi;
plot(x,sin(x))
hold on
plot(x,cos(x),'ro')
title('y1=sin(x),y2=cos(x)') %添加标题
xlabel('x') %添加横坐标名
legend('sin(x)','cos(x)',4) %添加图例
text(pi,sin(pi),'x=\p