代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
semilogy533.m
function semilogy533
figure(1)
x=0.001:0.01*pi:2*pi;
y=10.^x;
semilogy(x,y,'-*');
figure;
plot(x,y)
text541.m
function text541
x=1:0.1*pi:2*pi;
y=sin(x);
plot(x,y)
xlabel('x(0-2\pi)','fontweight','bold');
ylabel('y=sin(x)','fontweight','bold');
title('正弦函数','fontsize',12,'fontweight','bold','fontname'
gtext541.m
function gtext541
X=1:0.1*pi:2*pi;
Y=sin(X);
plot(X,Y)
gtext('y=sin(x) ', 'fontsize',12)
legend541.m
function legend541
x = -pi:pi/20:pi;
plot(x,cos(x),'-ro',x,sin(x),'-.b')
h = legend('cos','sin',2);
label541.m
function label541
figure(1)
x=1:0.1*pi:2*pi;
y=sin(x);
plot(x,y)
xlabel('x(0-2\pi)','fontweight','bold');
ylabel('y=sin(x)','fontweight','bold');
title('正弦函数','fontsize',12,'fontweight','bold
multarg.m
function [a,b] = multarg(x,y)
a = (x + y) * pi;
b = svd(svd(a));
test_plot.m
function test_plot
t = 0:pi/50:10*pi;
plot3(sin(t),cos(t),t)
axis square; grid on
dblquad_exam.m
%dblquad_exam.m
%计算二维高斯函数在矩形区间[-1 1 -1 1]上的二重积分
f=@(x,y)1/sqrt(pi)*exp(-x.^2)*1/sqrt(pi)*exp(-y.^2); %归一化高斯函数
dblquad(f,-1,1,-1,1,1e-6,@quadl)
test_plot.m
function test_plot
t = 0:pi/50:10*pi;
plot3(sin(t),cos(t),t)
axis square; grid on
dblquad_exam.m
%dblquad_exam.m
%计算二维高斯函数在矩形区间[-1 1 -1 1]上的二重积分
f=@(x,y)1/sqrt(pi)*exp(-x.^2)*1/sqrt(pi)*exp(-y.^2); %归一化高斯函数
dblquad(f,-1,1,-1,1,1e-6,@quadl)