Problem about proximity in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, all,
I defined an array like S=ones(N,x,'uint32'). And I give values to all of them. However I find out the maximum value is 65535 which is 2^16 not 2^32.
I tried 'uint64' but the limit is still 65535, why is that?
Thanks.
4 件のコメント
Image Analyst
2012 年 10 月 27 日
Calling class() causes no conversion. It must have got converted some other way.
回答 (1 件)
Image Analyst
2012 年 10 月 26 日
Somewhere along the way, you must have converted it to uint16, perhaps without realizing that you did so.
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!