MuPAD w. MATLAB 2015a: How to (properly) plot x*exp(-x/1.e-8) ?
Show older comments
I tried the following plot command in MuPAD running in MATLAB 2015a:
plot(x*exp(-x/1.e-8), x=0..5e-8)
and also tried:
plot(x*exp(-x/1.e-8), ViewingBox=[0..5e-8, 0..5e-9])
The result in both cases is a vertical axis from -1 to 1 and a graph that traces y=0. These commands properly displayed the graph in the MATLAB 2013a version of MuPAD (the maximum value of the function is approx. 3.7e-9 occurring at x approx. 1.e-8. Another thing I discovered was that if I use 1.e-7 in the function instead of 1.e-8, the 2015a version works fine. How can it properly plot it using 1.e-8 (or smaller) using the 2015a version of MuPAD?
4 Comments
Walter Roberson
on 8 Oct 2015
I wonder if it would make a difference if you increased Digits ?
Michael Pangia
on 8 Oct 2015
Walter Roberson
on 9 Oct 2015
Out of curiosity, how about if you switch it to an explicit multiply inside of divide by a fraction?
plot(x*exp(-x*1.e8), x=0..5e-8)
Michael Pangia
on 9 Oct 2015
Answers (0)
Categories
Find more on Plot Settings 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!