matlab中 Error using ==> plot Conversion to double from sym is not possible.的问题clear allclcsyms t gamma r1 i a%t=0:pi/50:pi/2;gamma=0:pi/50:pi/2;r1=3;i=4;a=r1+r1*i;plot(x1,y1,'g',x2,y2,'r',x,y,'k');axis equal我想画出(x1,y1),(x2,y2)和(x,y)

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 11:00:00

matlab中 Error using ==> plot Conversion to double from sym is not possible.的问题clear allclcsyms t gamma r1 i a%t=0:pi/50:pi/2;gamma=0:pi/50:pi/2;r1=3;i=4;a=r1+r1*i;plot(x1,y1,'g',x2,y2,'r',x,y,'k');axis equal我想画出(x1,y1),(x2,y2)和(x,y)
matlab中 Error using ==> plot Conversion to double from sym is not possible.的问题
clear all
clc
syms t gamma r1 i a
%
t=0:pi/50:pi/2;
gamma=0:pi/50:pi/2;
r1=3;
i=4;
a=r1+r1*i;
plot(x1,y1,'g',x2,y2,'r',x,y,'k');
axis equal
我想画出(x1,y1),(x2,y2)和(x,y)的曲线,可是出现Error using ==> plot
Conversion to double from sym is not possible.的问题
请问各位如何解决?
谢谢了!

matlab中 Error using ==> plot Conversion to double from sym is not possible.的问题clear allclcsyms t gamma r1 i a%t=0:pi/50:pi/2;gamma=0:pi/50:pi/2;r1=3;i=4;a=r1+r1*i;plot(x1,y1,'g',x2,y2,'r',x,y,'k');axis equal我想画出(x1,y1),(x2,y2)和(x,y)
plot函数要求输入宗量是数值类型,sym符号类型是不行的.把开头定义符号变量的语句去掉.