get rid of e notation
    1 visualización (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
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 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 12 de Jul. de 2011
        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 comentarios
  Walter Roberson
      
      
 el 12 de Jul. de 2011
				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.)
Más respuestas (2)
  Friedrich
    
 el 12 de Jul. de 2011
        Hi,
have a look at the format function:
So this should work
format long
  Paulo Silva
      
 el 12 de Jul. de 2011
        No it's not stopping you unless the variable is a string instead of a number, please provide more details.
3 comentarios
  Paulo Silva
      
 el 12 de Jul. de 2011
				something doesn't seem right, please provide the code and a sample of the data
Ver también
Categorías
				Más información sobre Logical en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



