y=a*b^x
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How to plot an equation that looks like y=a*b^x? i have values for x and y.
3 Kommentare
Houman Rastegarfar
am 2 Dez. 2020
Hi Jeyhun,
If you know the values of x and y, then you can use the plot function. This line of code creates a plot of the data in y versus the corresponding values in x.
plot(x,y)
-Houman
Antworten (1)
Setsuna Yuuki.
am 2 Dez. 2020
Bearbeitet: Setsuna Yuuki.
am 2 Dez. 2020
For example if your y = a*cos(x), you can use plot like this:
x = 0:1e-2:20; %x values
a = 2; %can be anything constant number
y = a*cos(x);
plot(x,y)

0 Kommentare
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!