matlab figure(1),figure(2)在哪个位置添加?我想做两个figure 一个是星形线,一个是四叶玫瑰线,这是我的代码theta=linspace(0,2*pi,400);rou=4*sin(2*theta);figure(1)hold onpolar(theta,rou);b=2;fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)ezp

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 19:00:29
matlab figure(1),figure(2)在哪个位置添加?我想做两个figure 一个是星形线,一个是四叶玫瑰线,这是我的代码theta=linspace(0,2*pi,400);rou=4*sin(2*theta);figure(1)hold onpolar(theta,rou);b=2;fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)ezp

matlab figure(1),figure(2)在哪个位置添加?我想做两个figure 一个是星形线,一个是四叶玫瑰线,这是我的代码theta=linspace(0,2*pi,400);rou=4*sin(2*theta);figure(1)hold onpolar(theta,rou);b=2;fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)ezp
matlab figure(1),figure(2)在哪个位置添加?
我想做两个figure 一个是星形线,一个是四叶玫瑰线,这是我的代码
theta=linspace(0,2*pi,400);
rou=4*sin(2*theta);
figure(1)
hold on
polar(theta,rou);
b=2;
fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)
ezplot(fh)
t=-2*pi:0.1:2*pi;
x=cos(t).^3;y=sin(t).^3;
figure(2);plot(x,y)
做出来以后四叶玫瑰线就跑到星形线的坐标轴里了

matlab figure(1),figure(2)在哪个位置添加?我想做两个figure 一个是星形线,一个是四叶玫瑰线,这是我的代码theta=linspace(0,2*pi,400);rou=4*sin(2*theta);figure(1)hold onpolar(theta,rou);b=2;fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)ezp
theta=linspace(0,2*pi,400);
rou=4*sin(2*theta);
figure(1)
hold off
polar(theta,rou);
b=2;
fh=@(x,y)x^(2/3)+y^(2/3)-b^(2/3)
ezplot(fh)
t=-2*pi:0.1:2*pi;
x=cos(t).^3;y=sin(t).^3;
figure(2);
plot(x,y)

你看这样是否是你想要的?