Error when i create functions in sys
古いコメントを表示
syms X
n=1;
F=square(2/(pi*X))*cos(X-pi/4-(pi*n)/2);
Input arguments must be 'double'
what worng?
回答 (1 件)
Star Strider
2017 年 9 月 24 日
0 投票
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 件のコメント
Karan Gill
2017 年 9 月 25 日
heaviside could help for sym input.
カテゴリ
ヘルプ センター および File Exchange で Time-Domain Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!