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

 Réponse acceptée

Greg Heath
Greg Heath le 5 Jan 2019

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by