how can i eliminate below error
Show older comments
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))
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!