Error using exponents in a small mathematical equation
2 views (last 30 days)
Show older comments
It seems I've run into a problem with a mathematical equation A=(-3.5*a)^3+(exp^7)/ln(524*a)+206^1/3 gives Error using exp Not enough input arguments.
0 Comments
Accepted Answer
Andrei Bobrov
on 22 Sep 2016
Edited: Andrei Bobrov
on 22 Sep 2016
exp^7 -> exp(7) and ln(524*a) -> log(524*a)
A = (-3.5*a)^3 + exp(7)/log(524*a) + 206^1/3 ;
6 Comments
Stephen23
on 22 Sep 2016
Edited: Stephen23
on 22 Sep 2016
You are getting the error because you have used implicit multiplication, but MATLAB interprets this as indexing. The syntax you use here is for indexing into c, not for multiplication with some other value:
2.9^c(16+...
If you want to multiply these values, then you need to specify this:
2.9^c * (16+...
^
More Answers (0)
See Also
Categories
Find more on Logical 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!