下面的matlab程序画图出现什么问题?R=35*(1-erf(17/(2*sqrt(0.04*t))));%由公式计算出的扩张半径t=0:0.1:0.5*pi;p=0:0.1:2*pi;[theta,phi]=meshgrid(t,p);x=R*sin(theta).*cos(phi);y=R*sin(theta).*sin(phi);z=R*cos(theta);hold onsurfc(x,y,
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/31 04:28:22
![下面的matlab程序画图出现什么问题?R=35*(1-erf(17/(2*sqrt(0.04*t))));%由公式计算出的扩张半径t=0:0.1:0.5*pi;p=0:0.1:2*pi;[theta,phi]=meshgrid(t,p);x=R*sin(theta).*cos(phi);y=R*sin(theta).*sin(phi);z=R*cos(theta);hold onsurfc(x,y,](/uploads/image/z/3764034-18-4.jpg?t=%E4%B8%8B%E9%9D%A2%E7%9A%84matlab%E7%A8%8B%E5%BA%8F%E7%94%BB%E5%9B%BE%E5%87%BA%E7%8E%B0%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%3FR%3D35%2A%281-erf%2817%2F%282%2Asqrt%280.04%2At%29%29%29%29%3B%25%E7%94%B1%E5%85%AC%E5%BC%8F%E8%AE%A1%E7%AE%97%E5%87%BA%E7%9A%84%E6%89%A9%E5%BC%A0%E5%8D%8A%E5%BE%84t%3D0%3A0.1%3A0.5%2Api%3Bp%3D0%3A0.1%3A2%2Api%3B%5Btheta%2Cphi%5D%3Dmeshgrid%28t%2Cp%29%3Bx%3DR%2Asin%28theta%29.%2Acos%28phi%29%3By%3DR%2Asin%28theta%29.%2Asin%28phi%29%3Bz%3DR%2Acos%28theta%29%3Bhold+onsurfc%28x%2Cy%2C)
下面的matlab程序画图出现什么问题?R=35*(1-erf(17/(2*sqrt(0.04*t))));%由公式计算出的扩张半径t=0:0.1:0.5*pi;p=0:0.1:2*pi;[theta,phi]=meshgrid(t,p);x=R*sin(theta).*cos(phi);y=R*sin(theta).*sin(phi);z=R*cos(theta);hold onsurfc(x,y,
下面的matlab程序画图出现什么问题?
R=35*(1-erf(17/(2*sqrt(0.04*t))));%由公式计算出的扩张半径
t=0:0.1:0.5*pi;
p=0:0.1:2*pi;
[theta,phi]=meshgrid(t,p);
x=R*sin(theta).*cos(phi);
y=R*sin(theta).*sin(phi);
z=R*cos(theta);
hold on
surfc(x,y,z)
下面的matlab程序画图出现什么问题?R=35*(1-erf(17/(2*sqrt(0.04*t))));%由公式计算出的扩张半径t=0:0.1:0.5*pi;p=0:0.1:2*pi;[theta,phi]=meshgrid(t,p);x=R*sin(theta).*cos(phi);y=R*sin(theta).*sin(phi);z=R*cos(theta);hold onsurfc(x,y,
R=35*(1-erf(17/(2*sqrt(0.04*t))));%你的这个t的值是多少,如果以下面的t代入,误差函数的值为0
%%
R=1; %这个是我临时取的
t=0:0.1:0.5*pi;
p=[0:0.1:2*pi,2*pi]; %补上这个缺口
[theta,phi]=meshgrid(t,p);
x=R.*sin(theta).*cos(phi);
y=R.*sin(theta).*sin(phi);
z=R.*cos(theta);
hold on
surfc(x,y,z)