matlab plot颜色问题??? Error using ==> plot Conversion to double from sym is not possible.

MATLAB求函数积分无解析解,怎么画出积分后的图像_百度知道
MATLAB求函数积分无解析解,怎么画出积分后的图像
(2*1,(60-40)&#47. &gt.;(((60-L)&#47,0.52102));&gt. &gt.52102)).01*(40-12*t),L&#47,L&#47.52102)):40;&&(((Q-L)&#47. &Undefined function or variable '&gt,(60-40)&#47,inf);&&gt. Warning,t,(60-40)&#47.95*12*(X-L/ E=int(Y1.01*(40-12*t);&&gt.1;;&gt,(60-40)&#47.52102))&#47,0,(60-40)/ R1=(p1,X;12+X)*sqrt(2*pi)*sqrt(1;&Q'(2*1.;&&12;. & syms L, {; syms X;12;& R1=int(p1,0;12); p1=0;
|Error.02*(60-40-12*t);&gt,t;&12);&gt:0,E);X'&gt,t;&gt,t;12+X);&gt,t.01*40+0;12+X)*sqrt(2*pi)*sqrt(1.01*40+0; Y1=(R1+R2+10)*exp(-(X-2;12). &X'&gt.02*(60-40-12*t);(((60-L)/ R1=(p1.52102)))/&gt,(60-40)/12)+int(Y2;&gt.; R3=int(p3;X'&gt,(60-40)/ p4=0.52102));&&gt,(60-40)/ Y2=((R3+R4+p5+10)*exp(-(X-2; R2=int(p2;Undefined function or variable &#39,t; Y1=(R1+R2+10)*exp(-(X-2, or [: Explicit integra p2=0;(((60-L)/&gt: Expression or statement is incorrect--possibly unbalanced (;& XUndefined function or variable 'Warning.; Y1=((R1+R2+10)*exp(-(X-2; L=0,60/&gt. &&gt.52102)))/& double Xans =
88&gt,X;12+X)*sqrt(2*pi)*sqrt(1.52102))/12+X)*sqrt(2*pi)*sqrt(1;12);12,0;&& R2=int(p2;&gt,(60-40)/&&12+X): Explicit integra12); p3=0,0;(2*1; X,t;&Undefined function or variable '(2*1;& plot(L;&;& R4=int(p4;12);12;;& p5=0这是求积分代码&Error using plotConversion to double from sym is not possible
您的回答被采纳后将获得:
系统奖励20(财富值+经验值)+难题奖励30(财富值+经验值)
我有更好的答案
E是符号变量,是不可以直接使用plot画图的
其他类似问题
为您推荐:
matlab的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁1 accepted answer
Reputation: 0
Conversion to double from sym is not possible
1 accepted answer
Reputation: 0
1 accepted answer
Reputation: 0
Hi every body,I am a beginner of matlabthis is my code
A = [3*x , 0; 0.3*f , 0; 3 , 0; 1 , 0];
er=A(1,a);
ei=A(2,b);
ur=A(3,c);
ui=A(4,d);
for d=1:3;
z=(abs((d*x)*(e*u)^0.5)));
endwhen I come to plot, I get this messageConversion to double from sym is not possiblehelp me please, have a nice life
1,288 accepted answers
Reputation: 7,026
No products are associated with this question.
1 accepted answer
Reputation: 0
Direct link to this answer:
1 accepted answer
Reputation: 0
&Accepted answer
In the wide and broad world, never contact with each other, you gave me so useful help.thank you for your timely answer and your discerning observation ('f' from my code, replaced on 'x')To express my thanks, my function is named after "andrei bobrov".I am a beginner in matlab. But I will try my best to help others in matlab just like you someday.thank you again!
654 accepted answers
Reputation: 3,684
1,288 accepted answers
Reputation: 7,026
Direct link to this answer:
1,288 accepted answers
Reputation: 7,026
'f', from your code, replaced on
A = [3*x , 0; 0.3*x , 0; 3 , 0; 1 , 0];
er=A(1,a);
ei=A(2,b);
ur=A(3,c);
ui=A(4,d);
for d1=1:3
subs(abs(d1*x*e*u^0.5),x,x1) ;
plot(x1,z)
7,626 accepted answers
Reputation: 39,608
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test
Discover what MATLAB& can do for your career.
Opportunities for recent engineering grads.
MATLAB Academy
New to MATLAB?
Select Your Country
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
(Fran?ais)
(Italiano)
Switzerland
Asia Pacific
(简体中文)matlab问题:plot Conversion to double from sym is not possible,急急急!!!_百度知道
matlab问题:plot Conversion to double from sym is not possible,急急急!!!
,各位大侠,跪求,是不是我的数据类型不对,2),帮忙看下:11,y)为什么用plot就出现上述问题啊.08*y=0&#39!,[0;subplot(2;;y=dsolve(&#39,1)这是我的代码!x=0,&#39!,2;Dy-0;y(0)=8]);x'ezplot(y,&#39!;subplot(2,2;):1,麻烦哪位大侠帮忙解决下;z=double(x)plot(z!
提问者采纳
。;25)y还是表达式。。y = 80423*exp((2*x)&#47
求怎么解决,为什么下面可以啊x=-pi:0.1:y=sin(x);plot(x,y)这个y也是表达式啊,跪求大侠解决
这个y不是表达式 是矩阵了。。。。。。。。。。。上面的那个y是关于x 的表达是 你要画图科曼多得把x带进去把y算出来subs函数subs(S)表示:用数值替代所有的符号变量。
提问者评价
够意思!!!大神啊!!!非常非常感谢啊!!!
来自团队:
相关专业回答
这种转化确实挺晕的,经我调试,现将原因告诉你:
I_real(1)=sym('1-exp(-1)')后I_real(1)格式为sym 值为1-exp(-1)
double(I_real(1))后格式为double 值为0.6321
按我猜测你可能觉得小数位数不够而后用vpa,很好vpa转化后值是.
但格式又变为sym,而I_float是double格式数组.所以将vpa(double(I_real(1)))赋值给I_float(1...
其他类似问题
为您推荐:
matlab的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁matlab出错:Error using ==& plotConversion to double from sym is not possible?_百度知道
matlab出错:Error using ==& plotConversion to double from sym is not possible?
p>clc.hiphotos?://a:..1?.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="t&#39.hiphotos,然后报错;)plot(/zhidao/wh%3D600%2C800/sign=1b918fd7aaf/c995d143ad4bdba58afa40f4bfb050f://a.baidu://a.baidu? Error using ==&gt. plotConversion to double from sym is /zhidao/pic/item/c995d143ad4bdba58afa40f4bfb050f:10x=dsolve(&#39,&#39.jpg" esrc="/zhidao/wh%3D450%2C600/sign=70eee4af20/c995d143ad4bdba58afa40f4bfb050f;clear,t)想用这个程序画出X和t的曲线图;t=1.这是怎么回事?<a href="m*D2x+c*Dx+k*x=fcos(w*t+q)&#39
我有更好的答案
只能给定确定的数值点坐标,然后plot(x0,获得数值形式的x0plot函数只能“连点”; 等形式对 x 的各变量进行赋值(替换),plot不能识别。可以通过 x0 = subs(x),你的 x 是个符号变量。或者某些条件下可以用 ezplot(x,t)
我是想画X和T的关系图,不知道该怎么搞?如果按你所说的用explot(x,t),它报错的内容更多了。。如果把程序换做t=1:0.1:10;x=dsolve(&#39;m*D2x+c*Dx+k*x=fcos(w*t+q)&#39;,&#39;t&#39;)x0=subs(x);plot(x,t)报错也更多 了。。
第一种使用替换函数 subs 的情况,要求 x 的表达式中所有符号都有确切的值,比如m、c、k、w、q,不能只给出 t。你的式子比较复杂,还是不要用第二种ezplot了(就是‘easy plot’)。。。比如 x=dsolve(&#39;m*D2x+c*Dx+k*x=fcos(w*t+q)&#39;,&#39;t&#39;)t=1:0.1:10; m = 1; c = 2; k = 3; w = 4; q = 5; %对参数的赋值必须在生成符号函数之后x0 = subs(x);plot(x0,t)
根据你的提醒,编程如上,但是仍然报错。。话说你QQ多少?咱们QQ说行吗?
首先,二阶常微分方程的通解中,应该有3个任意常数,如果没有其他限制条件的话,这些常数也需要赋值,例如 C1 = 6; C2 = 7; C3 = 8;其次,你的这个 fcos 自定义函数,不知道matlab会把它当成什么东西。。。
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁为什么matlab总是提示‘Conversion to double from sym is not possible’??_百度知道
为什么matlab总是提示‘Conversion to double from sym is not possible’??
这种转化确实挺晕的,经我调试,现将原因告诉你:I_real(1)=sym(&#39;1-exp(-1)&#39;)后I_real(1)格式为sym 值为1-exp(-1)double(I_real(1))后格式为double 值为0.6321按我猜测你可能觉得小数位数不够而后用vpa,很好vpa转化后值是.但格式又变为sym,而I_float是double格式数组.所以将vpa(double(I_real(1)))赋值给I_float(1)会出错.程序改为如下,不知可如意clcclearformat long I_real=sym(zeros(15,1))I_float=zeros(15,1)I_real(1)=sym(&#39;1-exp(-1)&#39;)I_float(1)=double(I_real(1))for n=1:14
I_real(n+1)=1-n*I_real(n);
I_float(n+1)=1-n*I_float(n);endvpa([I_float I_real])
其他类似问题
为您推荐:
提问者采纳
1))I_float=zeros(15,不知可如意clcclearformat long I_real=sym(zeros(15.但格式又变为1-exp(-1)&#39;)I_float(1)=double(I_real(1))for n=1.6321按我猜测你可能觉得小数位数不够而后用vpa,1)I_real(1)=sym(&#39这种转化确实挺晕的:14
I_real(n+1)=1-n*I_real(n);1-exp(-1)&#39;)后I_real(1)格式为sym 值为1-exp(-1)double(I_real(1))后格式为double 值为0.所以将vpa(double(I_real(1)))赋值给I_float(1)会出错;
I_float(n+1)=1-n*I_float(n),很好vpa转化后值是,而I_float是double格式数组,现将原因告诉你,经我调试.程序改为如下:I_real(1)=sym(&#39
谢谢你的回答哦~我刚开始学习matlab,所以有很多地方不太懂,能不能再请教你一个问题?就是,如果现在的条件改为I14=0.,递推关系为I(n-1)=(1-I(n))&#47;n,那么该怎么改上面的编程才能到得到输出I14; I13; ··· ; I0的头8位精确有效数字?我得到的为什么全是零呢?万分感谢!
clcclearI14=0.;fprintf(&#39;I14= %.8g&#92;n&#39;,I14)%%保留8位有效数字for k=1:14
eval([&#39;I&#39;,num2str(14-k),&#39;=(1-I&#39;,num2str(15-k),&#39;)&#47;&#39;,num2str(15-k),&#39;;&#39;]);
eval( [&#39;fprintf(&#39;&#39;&#39;,&#39;I&#39;,num2str(14-k),&#39; = %.8g&#92;n&#39;&#39;,&#39;,&#39;I&#39;,num2str(14-k),&#39;)&#39;])end或者clccleardigits(8)I14=0.;%fprintf(&#39;I14= %.8g&#92;n&#39;,I14)%%保留8位有效数字I14=vpa(I14)for k=1:14
eval([&#39;I&#39;,num2str(14-k),&#39;=(1-I&#39;,num2str(15-k),&#39;)&#47;&#39;,num2str(15-k),&#39;;&#39;]);
eval( [&#39;I&#39;,num2str(14-k),&#39;=vpa(I&#39;,num2str(14-k),&#39;)&#39;])end
提问者评价
非常感谢!
matlab的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 matlab plot颜色 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信