MATLAB xlswrite function
7 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Sean de Wolski
2011 年 1 月 28 日
Because 2^16-1 is the largest number Excel can represent since it's 16 bit unsigned.
2 件のコメント
その他の回答 (2 件)
Kenneth Eaton
2011 年 1 月 28 日
Excerpt:
- Excel converts Inf values to 65535. MATLAB converts NaN values to empty cells.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!