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',3) 错

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 16:16:48
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',3) 错

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',3) 错
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',3)
错误:
There is no 'linewidth' property in the 'figure' class.
Error in ==> exp at 102
set(h2,'linewidth',3)

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',3) 错
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)