How to handle overflows of int16
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Micke Malmström
      
 el 26 de Nov. de 2015
  
    
    
    
    
    Editada: Micke Malmström
      
 el 26 de Nov. de 2015
            I get a vector of int16 from a VISA-instrument where the values have rolled over if to big, the vector has an offset that I want to subtract but then the values just becomes floored at - 32768.
The question comes down to how can I make int16(-2^15-1) = 32767 ?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Language Fundamentals 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!