not enough input arguments
Ältere Kommentare anzeigen
Hi, Im trying to calculate the energy of this signal. I can't seem to locate the error and i dont know if I defined the inline function correctly. The function has no time interval. Error messages for this code are 'Not enough input argument' and 'Error in indexing'.
This is my code:
f=inline('(4*exp^(-x/10))*rectangularPulse((x-4)/3)','x')
syms x
int((f(x))^2,x);
Not sure where it went wrong.
Help is appreciated and thanks.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!