MATLAB xlswrite function
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hello all MATLAB users:
This came to my attention,
>> x = [inf 3 4 inf];
>> xlswrite('test',x,'test');
if you open the .xls file you will notice that the inf value in xls is the "magic" number 65535.
Does anyone know the reason?
0 Commenti
Risposta accettata
  Sean de Wolski
      
      
 il 28 Gen 2011
        Because 2^16-1 is the largest number Excel can represent since it's 16 bit unsigned.
2 Commenti
Più risposte (2)
  Kenneth Eaton
      
 il 28 Gen 2011
        Excerpt:
- Excel converts Inf values to 65535. MATLAB converts NaN values to empty cells.
 
0 Commenti
Vedere anche
Categorie
				Scopri di più su Spreadsheets in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!