how can i eliminate below error
이전 댓글 표시
function x = binary2decimal( b , xl , xu ,q )
syms p
s=symsum(((2^p)*b(p)),p ,1 ,(q-1))
x = (xl+((xu-xl)*(s/((2^q)-1))))
error
Invalid indexing or function definition. When defining a function, ensure that the body of the function is a SYM object.
When indexing, the input must be numeric, logical or ':'.
Error in binary2decimal (line 3)
s=symsum(((2^p)*b(p)),p ,1 ,(q-1))
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!