Help with exponential returning zeroes

4 Ansichten (letzte 30 Tage)
Jesse
Jesse am 15 Mai 2014
Kommentiert: Jesse am 15 Mai 2014
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!

Akzeptierte Antwort

Sara
Sara am 15 Mai 2014
  4 Kommentare
Walter Roberson
Walter Roberson am 15 Mai 2014
Give the command
format long g
Jesse
Jesse am 15 Mai 2014
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!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by