Drawing a function graph?
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
0 投票
採用された回答
madhan ravi
2018 年 11 月 23 日
編集済み: madhan ravi
2018 年 11 月 23 日
Use syms x and use fplot() to plot the function
8 件のコメント
Gaston Gakomo
2018 年 11 月 23 日
Hi, im getting error when i write the function.
what is the correct way for matlab to understand it ?
madhan ravi
2018 年 11 月 23 日
編集済み: madhan ravi
2018 年 11 月 23 日
Read the link in the answer I posted and upload the code that you are trying
Gaston Gakomo
2018 年 11 月 23 日
like this ?
>> syms f(x)
>> f(x)= x^3-x^2+2*x-4;
>> fplot(f)
madhan ravi
2018 年 11 月 23 日
perfect!
Gaston Gakomo
2018 年 11 月 23 日
Using the graph, i need to find the solutions for the equation in three decimal places.
but im only getting one line?
madhan ravi
2018 年 11 月 23 日
編集済み: madhan ravi
2018 年 11 月 23 日
syms f(x) y
f(x)= x^3-x^2+2*x-4;
fplot(f)
hold on
fplot(subs(y,0))
sol=vpasolve(f) %you can see two imaginary roots
solutions = roots(sym2poly(f))
Gaston Gakomo
2018 年 11 月 23 日
thank you very much.
madhan ravi
2018 年 11 月 23 日
Anytime :)
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
タグ
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
