本文主要是介绍【matlab】双精度每字符占8字节,单精度每字符占4字节,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
>> help magic
magic - Magic squareThis MATLAB function returns an n-by-n matrix constructed from the integers 1through n^2 with equal row and column sums.M = magic(n)magic 的参考页另请参阅 ones, rand>> a = magic(4)a =16 2 3 135 11 10 89 7 6 124 14 15 1>> whos aName Size Bytes Class Attributesa 4x4 128 double >> b = single(a)b =16 2 3 135 11 10 89 7 6 124 14 15 1>> whos bName Size Bytes Class Attributesb 4x4 64 single
这篇关于【matlab】双精度每字符占8字节,单精度每字符占4字节的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!