英语翻译n = 12;a = .2; %小筒的直径c = .6; %灯泡的直径t1 = pi/4 :pi/n :5*pi
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/20 06:50:43
英语翻译
n = 12;
a = .2; %小筒的直径
c = .6; %灯泡的直径
t1 = pi/4 :pi/n :5*pi/4; %沿管参数
t2 = 5*pi/4 :pi/n :9*pi/4; %角管周长
u = pi/2 :pi/n :5*pi/2;
[X,Z1] = meshgrid(t1,u);
[Y,Z2] = meshgrid(t2,u);
%手柄
len = sqrt(sin(X).^2 + cos(2*X).^2);
x1 = c*ones(size(X)).*(cos(X).*sin(X) ...
- 0.5*ones(size(X))+a*sin(Z1).*sin(X)./len);
y1 = a*c*cos(Z1).*ones(size(X));
z1 = ones(size(X)).*cos(X) + a*c*sin(Z1).*cos(2*X)./len;
handleHndl=surf(x1,y1,z1,X);
set(handleHndl,'EdgeColor',[.5 .5 .5]);
hold on;
%灯泡
r = sin(Y) .* cos(Y) - (a + 1/2) * ones(size(Y));
x2 = c * sin(Z2) .* r;
y2 = - c * cos(Z2) .* r;
z2 = ones(size(Y)) .* cos(Y);
bulbHndl=surf(x2,y2,z2,Y);
set(bulbHndl,'EdgeColor',[.5 .5 .5])
colormap(hsv);
axis vis3d
view(-37,30);
axis off
light('Position',[2 -4 5])
light
hold off
shading interp
c = X;
[row col] = size(c);
c(1:floor(row/2),:) = NaN*ones(floor(row/2),col);
set(handleHndl,'CData',c);
c = Y;
[row col] = size(c);
c(1:floor(row/2),:) = NaN*ones(floor(row/2),col);
set(bulbHndl,'CData',c);
set([handleHndl bulbHndl],'FaceAlpha',1);
shading faceted;
set(handleHndl,'CData',X);
set(bulbHndl,'CData',Y);
set([handleHndl bulbHndl],...
'EdgeColor',[.5 .5 .5],...
'FaceAlpha',.5);
就像 a = .2; %小筒的直径
这样写出每一句的意思.
n = 12;
a = .2; %小筒的直径
c = .6; %灯泡的直径
t1 = pi/4 :pi/n :5*pi/4; %沿管参数
t2 = 5*pi/4 :pi/n :9*pi/4; %角管周长
u = pi/2 :pi/n :5*pi/2;
[X,Z1] = meshgrid(t1,u);
[Y,Z2] = meshgrid(t2,u);
%手柄
len = sqrt(sin(X).^2 + cos(2*X).^2);
x1 = c*ones(size(X)).*(cos(X).*sin(X) ...
- 0.5*ones(size(X))+a*sin(Z1).*sin(X)./len);
y1 = a*c*cos(Z1).*ones(size(X));
z1 = ones(size(X)).*cos(X) + a*c*sin(Z1).*cos(2*X)./len;
handleHndl=surf(x1,y1,z1,X);
set(handleHndl,'EdgeColor',[.5 .5 .5]);
hold on;
%灯泡
r = sin(Y) .* cos(Y) - (a + 1/2) * ones(size(Y));
x2 = c * sin(Z2) .* r;
y2 = - c * cos(Z2) .* r;
z2 = ones(size(Y)) .* cos(Y);
bulbHndl=surf(x2,y2,z2,Y);
set(bulbHndl,'EdgeColor',[.5 .5 .5])
colormap(hsv);
axis vis3d
view(-37,30);
axis off
light('Position',[2 -4 5])
light
hold off
shading interp
c = X;
[row col] = size(c);
c(1:floor(row/2),:) = NaN*ones(floor(row/2),col);
set(handleHndl,'CData',c);
c = Y;
[row col] = size(c);
c(1:floor(row/2),:) = NaN*ones(floor(row/2),col);
set(bulbHndl,'CData',c);
set([handleHndl bulbHndl],'FaceAlpha',1);
shading faceted;
set(handleHndl,'CData',X);
set(bulbHndl,'CData',Y);
set([handleHndl bulbHndl],...
'EdgeColor',[.5 .5 .5],...
'FaceAlpha',.5);
就像 a = .2; %小筒的直径
这样写出每一句的意思.
这个是按照你第一个代码转换来的.第二段代码你找着上面那个自己转换就行了. 我本来想给你改成matlab程序,但是C程序学得不太好!但是给你提示一下
[(N*PI)/2]*|SINX|在(0,N*PI)积分为什么=[(N*N*PI)/2]|SINX|在(0,PI)积分?
三角函数恒等变形证明sin( pi/3 ) + sin( 2*pi/3) + ...+ sin( n * pi/3)=
证明sin(pi/n)*sin(2pi/n)*sin(3pi/n)*…sin((n-1)pi/n)=n/(2^(n-1)
∑1/n^2=pi^2/6 证明∑(-1)^n-1 1/n^2=pi^2/12
sin pi/6是正的? pi=派
求证:pi^4+pi^5=e^6
已知a∈(pi,3pi/2),cosa=-1/3,求sin(a-2pi/3)的值
y=0.75sin(x+Pi/4) ( x属于[-pi,pi])的减区间
a,b∈(3pi/4,pi),sin(a+b)=-3/5,sin(b-pi/4)=12/13,则cos(a+pi/4)=
已知a,b,属于(3pi/4,pi),sin(a+b)=-3/5,sin(b-pi/4)=12/13,则cos(a+pi
、设a为锐角,若cos(a+pi/6)=4/5,则sin(2a+pi/12)的值为?
设a为锐角,若cos(a+pi/6)=4/5,则sin(2a+pi/12)的值为?