I have some problem when plotting the graph, anyone can help? Thanks

3 ビュー (過去 30 日間)
Erwin Koman
Erwin Koman 2015 年 6 月 27 日
コメント済み: Erwin Koman 2015 年 6 月 27 日
This is my code
for x = -10:10
y = 2^(0.4*x)+5
plot(x,y,'g')
end

採用された回答

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015 年 6 月 27 日
編集済み: Salaheddin Hosseinzadeh 2015 年 6 月 27 日
Hi,
You need to store y first.
x = -10:10;
for i = 1:numel(x)
y(i) = 2^(0.4*x(i))+5
end
plot(x,y,'g')

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by