Error when i create functions in sys
1 次查看(过去 30 天)
显示 更早的评论
syms X
n=1;
F=square(2/(pi*X))*cos(X-pi/4-(pi*n)/2);
Input arguments must be 'double'
what worng?
0 个评论
回答(1 个)
Star Strider
2017-9-24
The square (link) function is part of the Signal Processing Toolbox. It does not accept symbolic variables (in your example, that would be ‘X’).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!