Error when i create functions in sys
Ältere Kommentare anzeigen
syms X
n=1;
F=square(2/(pi*X))*cos(X-pi/4-(pi*n)/2);
Input arguments must be 'double'
what worng?
Antworten (1)
Star Strider
am 24 Sep. 2017
0 Stimmen
The square (link) function is part of the Signal Processing Toolbox. It does not accept symbolic variables (in your example, that would be ‘X’).
1 Kommentar
Karan Gill
am 25 Sep. 2017
heaviside could help for sym input.
Kategorien
Mehr zu Time-Domain Analysis 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!