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!