永发信息网

怎么用 matlab画出这个公式的图,有图例,求编程过程

答案:2  悬赏:10  手机版
解决时间 2021-03-17 23:49
  • 提问者网友:書生途
  • 2021-03-17 18:48
怎么用 matlab画出这个公式的图,有图例,求编程过程
最佳答案
  • 五星知识达人网友:煞尾
  • 2021-03-17 19:20
写了个M file,运行得到你的图像,不过有点小小的bug:clear
figure1=figure('Color',[1 1 1]);
syms x;
k=0:0.2:10;
N=zeros(1,length(k));
for i=2:length(k)
y=k(i)/2*int(1/((x+k(i)^2)^(3/2)*(x+1)),x,0,inf);
N(i-1)=vpa(y,10);
end
plot(k,N,'r.'),grid on 运行结果:不过命令窗口出现了以下东西:Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found.
Warning: Explicit integral could not be found. ……
全部回答
  • 1楼网友:北城痞子
  • 2021-03-17 20:51
syms x k; n_x=k/2*int(1/sqrt(x+k^2)^3/(x+1),x,0,inf); kk=linspace(.1,10,50); plot(kk,subs(n_x,k,kk)) ylim([0,.7])
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯