用Matlab求解定积分作图时出现Explicit integral could not be found
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/01 03:22:46
用Matlab求解定积分作图时出现Explicit integral could not be found
这样一个数 想用matlab画出Φ与e的坐标图,横坐标是e,纵坐标是Φ,Io=1,r=0.01,具体编的程序是:
clc;
clear all;
i=1;
r=0.01;
e=0:0.01:2;
syms x y;
y=1/4*i*int(1-cos(2*atan((sqrt(r.^2-e.^2*(sin(x)).^2)-e.*cos(x))/0.01)),0,2*pi);
plot(e,y)
运行后系统提示警告 Explicit integral could not be found和
Error using ==> plot
Conversion to double from sym is not possible.
![](http://img.wesiedu.com/upload/9/00/900a61e046042415db33b607688dee30.jpg)
clc;
clear all;
i=1;
r=0.01;
e=0:0.01:2;
syms x y;
y=1/4*i*int(1-cos(2*atan((sqrt(r.^2-e.^2*(sin(x)).^2)-e.*cos(x))/0.01)),0,2*pi);
plot(e,y)
运行后系统提示警告 Explicit integral could not be found和
Error using ==> plot
Conversion to double from sym is not possible.
![用Matlab求解定积分作图时出现Explicit integral could not be found](/uploads/image/z/3856411-19-1.jpg?t=%E7%94%A8Matlab%E6%B1%82%E8%A7%A3%E5%AE%9A%E7%A7%AF%E5%88%86%E4%BD%9C%E5%9B%BE%E6%97%B6%E5%87%BA%E7%8E%B0Explicit+integral+could+not+be+found)
int是符号积分,这个积分解matlab找不到显示表达式,因此得不到定积分的值.
因为你的目的是画出图像,所以可改用数值积分,quad或者integral.
再问: 我后来改成了数值积分还是有问题clc;clear all;i=1;r=0.01;e=0:0.001:0.01;syms x y;df=@(x)(1-cos(2.*atan((sqrt(r.^2-e.^2.*(sin(x)).^2)-e.*cos(x))./0.01)))y=1./8*i.*quad(df,0,2*pi);plot(e,y)提示错误是:![](http://img.wesiedu.com/upload/7/46/746024483cd050805ea9644fba7dc447.jpg)
再答: 这是语法的问题。给你贴一段。
函数定义的时候就不能将e当作向量代入了。
再问: 非常感谢 问题解决了~ 请问一下对于matlab完全没有基础的可以看些什么入门的书呢?
再答: 其实各种教程都大同小异。 主要是要掌握基本的语法和可用的函数。 至于函数具体怎么用,需要输入什么参数等等,要善于用help。 毕竟Matlab是个很强大的软件,你不可能把所有函数都了解得清清楚楚。 另外随时上网查函数的用法。
因为你的目的是画出图像,所以可改用数值积分,quad或者integral.
再问: 我后来改成了数值积分还是有问题clc;clear all;i=1;r=0.01;e=0:0.001:0.01;syms x y;df=@(x)(1-cos(2.*atan((sqrt(r.^2-e.^2.*(sin(x)).^2)-e.*cos(x))./0.01)))y=1./8*i.*quad(df,0,2*pi);plot(e,y)提示错误是:
![](http://img.wesiedu.com/upload/7/46/746024483cd050805ea9644fba7dc447.jpg)
再答: 这是语法的问题。给你贴一段。
![](http://img.wesiedu.com/upload/7/17/717c280269a38e5331e5f9e2b7478e6f.jpg)
再问: 非常感谢 问题解决了~ 请问一下对于matlab完全没有基础的可以看些什么入门的书呢?
再答: 其实各种教程都大同小异。 主要是要掌握基本的语法和可用的函数。 至于函数具体怎么用,需要输入什么参数等等,要善于用help。 毕竟Matlab是个很强大的软件,你不可能把所有函数都了解得清清楚楚。 另外随时上网查函数的用法。
用Matlab求解定积分作图时出现Explicit integral could not be found
积分求解下式 用matlab求解时出现Explicit integral could not be found.
matlab 不定积分,数值积分,Explicit integral could not be found.
matlab积分出错:Explicit integral could not be found.
Warning: Explicit integral could not be found. 求高手解答int()定积分
matlab中的积分函数Warning:Explicit integral could not be found.
matlab求解方程组时 Warning:Explicit solution could not be found.>
用matlab求解a,b,c,d.提示Explicit solution could not be found.
用matlab算比较复杂的式子,出现Warning:Explicit solution could not be fou
matlab解方程组提示Explicit solution could not be found.应该是没有解析解.请问
求问,用matlab 解符号非线性方程组的时候出现 matlab Explicit solution could not
Matlab 解变限积分方程组 最好有代码因为我的解出来是explicit solution could not be