how to plot the graph for the functions 0<x<2 with y=sin x and y=x^3 and how to get point of intersection?
14 ビュー (過去 30 日間)
古いコメントを表示
I will be thankful to your reply..
1 件のコメント
Matt J
2012 年 12 月 2 日
編集済み: Matt J
2012 年 12 月 3 日
Replies are unlikely if you show no evidence of having attempted the homework or of having read the MATLAB documentation. If you've done minimal reading of the Getting Started material, you should be aware of the PLOT command and seen examples of its use.
回答 (3 件)
vb
2012 年 12 月 3 日
編集済み: Walter Roberson
2012 年 12 月 3 日
10 件のコメント
Walter Roberson
2012 年 12 月 4 日
x_of_intersection = fsolve(@(x)cos(x)-x.^2,1);
y_of_intersection = cos(x_of_intersection);
text(x_of_intersection, y_of_intersection, 'LOOK HERE')
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!