Error when i create functions in sys

1 vue (au cours des 30 derniers jours)
Yossi Benyakar
Yossi Benyakar le 24 Sep 2017
Commenté : Karan Gill le 25 Sep 2017
syms X
n=1;
F=square(2/(pi*X))*cos(X-pi/4-(pi*n)/2);
Input arguments must be 'double'
what worng?

Réponses (1)

Star Strider
Star Strider le 24 Sep 2017
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 commentaire
Karan Gill
Karan Gill le 25 Sep 2017
heaviside could help for sym input.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by