How to take an exponential to a non-integer value?
Show older comments
kvals = [0.142,0.144,0.156,0.180,0.196,0.205,0.207,0.201,0.177,0.160,0.149,0.142] ;
upx = -K./sinalpha_angle
exp_local = exp(upx)
I am trying to take an exponent of a non-integer value (upx) and keep getting the error that "Array indices must be positive integers or logical values". I know that none of these values are an integer but need to take the exponential to the non-integer power.
Any help is appreciated.
Accepted Answer
More Answers (1)
Matt J
on 10 Dec 2022
1 vote
You have created a variable named "exp" prior to the code you've shown. It needs to be cleared.
Categories
Find more on Multidimensional Arrays 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!