I have a problem in this code:
Error using plot
Vectors must be the same length.
plot(t,ge);
t=-1:1/20:1; % time period
ge=0.4*cos(4*x).*exp(-0.5*x); % exact fucntion

 採用された回答

Greg Heath
Greg Heath 2019 年 1 月 5 日

0 投票

Replace x with t
Thank you for formally accepting my answer
Greg

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

製品

質問済み:

2019 年 1 月 5 日

回答済み:

2019 年 1 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by