Could any body check my work? (Plot the function)
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
x = [-56:64];
y = [3.*x^2-5.*x-6];
plot(x,y,'--r','LineWidth',0.5)
xlabel('e')
ylabel('n')
title('kg')
Is this the proper answer for the question? Is there anything I should change for it to become the correct answer?

採用された回答
madhan ravi
2019 年 8 月 24 日
Your x and y doesn’t need square brackets. Check your title once again.
9 件のコメント
So should this be the answer i should give?
x = -56:64;
y = 3.*x^2-5.*x-6;
plot(x,y,'--y','LineWidth',0.5)
xlabel('e')
ylabel('n')
title('kg')
madhan ravi
2019 年 8 月 24 日
Seems about right, but the title part is confusing , "your weight in kg" , are you calculating any weight?
No I need to create a title for the plot, It's a question I learn, we are not calculating any weight
madhan ravi
2019 年 8 月 24 日
編集済み: madhan ravi
2019 年 8 月 24 日
So why not proceed with the latter code?
John wick
2019 年 8 月 24 日
What do u mean? which latter code? Could you give me some example?
x = -56:64;
y = 3*x.^2-5*x-6;
plot(x,y,'--y','LineWidth',0.5)
xlabel('e')
ylabel('n')
title('kg')
John wick
2019 年 8 月 24 日
So I shouldn't use 3.*x Can you explain why it should be that format? why not 3.*x is there any difference?
madhan ravi
2019 年 8 月 24 日
https://in.mathworks.com/matlabcentral/answers/477409-could-any-body-check-my-work-plot-the-function#comment_738540 - probably reading that link in the comment should help you understand basically you’re still stuck in the fundamentals of MATLAB.
John wick
2019 年 8 月 24 日
I still need to improve more, I will read and try to understand it from the link you gave me. Thank you so much for helping me all this times!
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Control System Toolbox についてさらに検索
参考
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)
