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

58 Ansichten (letzte 30 Tage)
Arsel Tanriverdi
Arsel Tanriverdi am 8 Jan. 2022
Beantwortet: Torsten am 8 Jan. 2022
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.

Akzeptierte Antwort

Torsten
Torsten am 8 Jan. 2022
x=0:0.1:50;
y=53.5*x-1354.5;
plot(x,y)

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by