Plotting and Calculating Integrals
1 回表示 (過去 30 日間)
古いコメントを表示
Mark Windel Marquez
2022 年 6 月 22 日
コメント済み: Mark Windel Marquez
2022 年 6 月 25 日
How will I plot and calculate these following integrals using matlab? What is the correct matlab code because it keeps me getting error :(( please help me~

1 件のコメント
採用された回答
chunyi liu
2022 年 6 月 22 日
syms x
int(2*x^2/sqrt(1+x),x,1,6)
int(cos(2*x)/x,x,1,2)
int(exp(2*x)/x,x,1,2)
int(exp(-x^2),x,-1,1)
Definite integrals are numerical values, not functions.
I'm not sure how you want to draw the plot, if give each value a corresponding independent variable and place them on the graph, you will see that they are four very similar values.
syms x
y1=int(2*x^2/sqrt(1+x),x,1,6)
y2=int(cos(2*x)/x,x,1,2)
y3=int(exp(2*x)/x,x,1,2)
y4=int(exp(-x^2),x,-1,1)
t=1:4;
y=[y1 y2 y3 y4];
plot(t,y1,'*')
axis([1 4 62.2692 62.2693])
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!