Borrar filtros
Borrar filtros

Error when i create functions in sys

2 visualizaciones (últimos 30 días)
Yossi Benyakar
Yossi Benyakar el 24 de Sept. de 2017
Comentada: Karan Gill el 25 de Sept. de 2017
syms X
n=1;
F=square(2/(pi*X))*cos(X-pi/4-(pi*n)/2);
Input arguments must be 'double'
what worng?

Respuestas (1)

Star Strider
Star Strider el 24 de Sept. de 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’).

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by