how Integers be raised to negativeintegral powers in matlab?by using .^ i am getting error like this.help me please

1 view (last 30 days)
??? Integers can only be raised to positive integral powers.
Error in ==> thrshholdmodifi at 16 umn=umncomp.^fe the above error coming. my algorithm requires to put negaive powers to integer values...

Accepted Answer

Walter Roberson
Walter Roberson on 27 Mar 2014
The difficulty is that you used an integral data type such as uint8 . Convert to double before raising to a negative power.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!