How to plot the graph of y=ax+b?

16 ビュー (過去 30 日間)
Arsel Tanriverdi
Arsel Tanriverdi 2022 年 1 月 8 日
回答済み: Torsten 2022 年 1 月 8 日
Hello,
I need to plot the graph of the line " y=53.5*x-1354.5 ", I tried using the " fplot " command but I couldn't get it to work.
Here is the relevant part of my code:
y=53.5*x-1354.5
fplot(y,[0,50])
Is there a different command I need to use or am I making a mistake somewhere?
Thank you for your help.

採用された回答

Torsten
Torsten 2022 年 1 月 8 日
x=0:0.1:50;
y=53.5*x-1354.5;
plot(x,y)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by