matlab set找错谁能告诉我下面的代码为什么最后一句出错h1=figure;x=[0 1 1

发布时间:2021-02-25 09:37:42

matlab set找错谁能告诉我下面的代码为什么最后一句出错h1=figure;x=[0 1 1 0 0];y=[0 0 1 1 0];fill(x,y,'y')axis([-1 2 -1 2])h2=figure;theta=linspace(0,2*pi);rho=sin(2*theta).*cos(2*theta);polar(theta,rho,'r')set(h2,'linewidth

网友回答

clear;clc
x=[0 1 1 0 0];
y=[0 0 1 1 0];
h1=fill(x,y,'y')
axis([-1 2 -1 2])
figure
theta=linspace(0,2*pi);
rho=sin(2*theta).*cos(2*theta);
h2=polar(theta,rho,'r')
set(h2,'linewidth',3)
以上问题属网友观点,不代表本站立场,仅供参考!