matlab 怎么改图啊[x,y]=meshgrid(linspace(60,120),linspace(0,360));z=0.430231*cosd(2*y)*sind(x)*sind(x);mesh(x,y,z);xlabel('\theta(\circ)'),ylabel('\phi(\circ)'),zlabel('B_{1r}(T)')怎么把角度换成弧度,还要网格
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 14:25:41
matlab 怎么改图啊[x,y]=meshgrid(linspace(60,120),linspace(0,360));z=0.430231*cosd(2*y)*sind(x)*sind(x);mesh(x,y,z);xlabel('\theta(\circ)'),ylabel('\phi(\circ)'),zlabel('B_{1r}(T)')怎么把角度换成弧度,还要网格
matlab 怎么改图啊
[x,y]=meshgrid(linspace(60,120),linspace(0,360));
z=0.430231*cosd(2*y)*sind(x)*sind(x);
mesh(x,y,z);
xlabel('\theta(\circ)'),ylabel('\phi(\circ)'),zlabel('B_{1r}(T)')
怎么把角度换成弧度,还要网格的密度大一点,生成的图形是这样的,怎么把它变成下面那样
matlab 怎么改图啊[x,y]=meshgrid(linspace(60,120),linspace(0,360));z=0.430231*cosd(2*y)*sind(x)*sind(x);mesh(x,y,z);xlabel('\theta(\circ)'),ylabel('\phi(\circ)'),zlabel('B_{1r}(T)')怎么把角度换成弧度,还要网格
clear,clc
a=10;
b=30;
[x,y]=meshgrid(linspace(pi/3,2*pi/3,a),linspace(0,2*pi,b));
z=0.430231*cos(2*y).*sin(x).*sin(x);
surf(x,y,z);
xlabel('\theta(rad)'),ylabel('\phi(rad)'),zlabel('B_{1r}(T)')
改变a,b的值就能调整格子的大小,希望对你有帮助