代码搜索结果

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

comet531.m

function comet531 figure(1) t = 0:.01:2*pi; x = cos(2*t).*(cos(t).^2); y = sin(2*t).*(sin(t).^2); comet(x,y);

errorbar531.m

function errorbar531 figure(1) x=[0:0.2:4*pi]; y=sin(x); e=[0:1/(length(x)-1):1]; errorbar(x,y,e)

ginput543.m

function ginput543 x=0:0.1*pi:2*pi; y=sin(x); plot(x,y) [m n]=ginput(1) hold on plot(m,n,'or') text(m(1),n(1),['m(1)=',num2str(m(1)),'n(1)=',num2str(n(1))])

plot3521.m

function plot3521 figure(1) t=0:pi/50:10*pi; plot3(cos(t),sin(t),t) figure(2) t=[0:pi/100:2*pi]; x=[sin(t) sin(t)]; y=[cos(t) cos(t)]; z=[(sin(t)).^2+(cos(t)).^2 (sin(t)).^2+(cos(t)).^2+1

cylinder532.m

function cylinder532 figure(1) cylinder figure(2) t = 0:pi/10:2*pi; [X,Y,Z] = cylinder(2+cos(t)); surf(X,Y,Z)

loglog533.m

function loglog533 m =0.001:0.01*pi:2*pi; x=10.^m; y=log10(m); loglog(x,y,'-*'); figure plot(x,y,'-.r')

semilogx533.m

function semilogx533 x=0.001:0.01*pi:2*pi; y=log10(x); semilogx(x,y,'-*'); figure; plot(x,y)

plotyy533.m

function plotyy533 x=0:0.01*pi:2*pi; y=sin(x); z=exp(x); plotyy(x,y,x,z,'plot','semilogy')

polar533.m

function polar533 rho0=1; theta=0:pi/20:4*pi; rho=rho0+theta*rho0; polar(theta,rho,':')

pol2cart533.m

function pol2cart533 theta=0:pi/20:2*pi; rho=sin(theta); [t,r]=meshgrid(theta,rho); z=r.*t; [X,Y,Z]=pol2cart(t,r,z); mesh(X,Y,Z)