get rid of e notation
2 次查看(过去 30 天)
显示 更早的评论
how do i get rid of the e notation in a variable? eg 4.321e+003, i just need it as 4321. its stopping me from plotting a graph.
0 个评论
采纳的回答
Walter Roberson
2011-7-12
Sounds to me as if you have accidentally created a variable named "plot".
In the mean time, use round() on your data and see if you get a plot out. My guess is that you will not.
7 个评论
Walter Roberson
2011-7-12
What is "a" ? If it is an array, then a(z) would be attempting to subscript "a" by the values in "z".
If "a" is an array and you are expecting that "z" will work out as integral, then you might be experiencing floating point roundoff limitations; if so then a(round(z)) should work (unless some z rounds to zero.)
更多回答(2 个)
Paulo Silva
2011-7-12
No it's not stopping you unless the variable is a string instead of a number, please provide more details.
3 个评论
Paulo Silva
2011-7-12
something doesn't seem right, please provide the code and a sample of the data
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!