y=a*b^x
4 ビュー (過去 30 日間)
古いコメントを表示
How to plot an equation that looks like y=a*b^x? i have values for x and y.
3 件のコメント
Houman Rastegarfar
2020 年 12 月 2 日
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
回答 (1 件)
Setsuna Yuuki.
2020 年 12 月 2 日
編集済み: Setsuna Yuuki.
2020 年 12 月 2 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!