Help with exponential returning zeroes

Greetings all,
Argh, this answer should be obvious, but for me, or course it's not. Here's what I'm trying to do:
Zval = [0.1:0.1:9];
A = -8.11*Zval;
B = e.^(A)
Zval is fine, A is fine,however, B returns all zeroes, which shouldn't be the case. What am I doing wrong?
Thanks!

 Accepted Answer

B = exp(A)

4 Comments

Sara,
No dice - still all zeros.
Sara
Sara on 15 May 2014
Edited: Sara on 15 May 2014
I've tried and it's not all zeros...see figure
Give the command
format long g
Sarah, yeah you were right - the output went too fast for me and I was under the impression it was all zeros. I'll accept your answer.
Walter, thanks for that info too. I know you've helped me before - one day I'm going to have skills like you!

Sign in to comment.

More Answers (0)

Categories

Asked:

on 15 May 2014

Commented:

on 15 May 2014

Community Treasure Hunt

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

Start Hunting!