function x = binary2decimal( b , xl , xu ,q )syms ps=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))
MATLAB: How can i eliminate below error
binary to decimal conversionrange(-10 10)
Related Question
- Cannot find solution & Symbolic parameters are not allowed in nonpolynomial equations.
- How to multiply the constants of a symbolic vector
- How to create an equation for symsum that involves multiplaction, fractions, etc
- Distribution a syms variable with i loop over a vector
- Presenting this results in a tabulated form
- “Subscript indices must either be real positive integers or logicals.” Error with analytic function
- How to write Continue Long Statements on Multiple Lines
Best Answer