フィルターのクリア

i want my graph to start from 0 after writing this code it starts from 1

2 ビュー (過去 30 日間)
Saif Sayed
Saif Sayed 2019 年 9 月 9 日
回答済み: madhan ravi 2019 年 9 月 9 日
clc
clear all
for x=1:1:51
y(x)=-0.0349*(exp(0.548*x*0.1))+8.549*(exp(-0.548*x*0.1))+0.119;
end
plot(y)

採用された回答

madhan ravi
madhan ravi 2019 年 9 月 9 日
% No loops needed:
x=0:51;
y=-0.0349*(exp(0.548*x*0.1))+8.549*(exp(-0.548*x*0.1))+0.119;
plot(x,y)
"plot(Y) plots the columns of Y versus their index.
If Y is complex, plot(Y) is equivalent to plot(real(Y),imag(Y)).
In all other uses of plot, the imaginary part is ignored."

その他の回答 (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