Problem about proximity in matlab
1 次查看(过去 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!