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)
Show older comments
srilakshmi mahipathi
on 27 Mar 2014
Answered: Walter Roberson
on 27 Mar 2014
??? 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...
0 Comments
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!