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/06/28 13:01:11
![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) 错](/uploads/image/z/10176329-65-9.jpg?t=matlab+set%E6%89%BE%E9%94%99%E8%B0%81%E8%83%BD%E5%91%8A%E8%AF%89%E6%88%91%E4%B8%8B%E9%9D%A2%E7%9A%84%E4%BB%A3%E7%A0%81%E4%B8%BA%E4%BB%80%E4%B9%88%E6%9C%80%E5%90%8E%E4%B8%80%E5%8F%A5%E5%87%BA%E9%94%99h1%3Dfigure%3Bx%3D%5B0+1+1+0+0%5D%3By%3D%5B0+0+1+1+0%5D%3Bfill%28x%2Cy%2C%27y%27%29axis%28%5B-1+2+-1+2%5D%29h2%3Dfigure%3Btheta%3Dlinspace%280%2C2%2Api%29%3Brho%3Dsin%282%2Atheta%29.%2Acos%282%2Atheta%29%3Bpolar%28theta%2Crho%2C%27r%27%29set%28h2%2C%27linewidth%27%2C3%29+%E9%94%99)
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)