实例:
bin_2_oct(“0100101111100100110010010101001010010010101111010011101010010101001”)
ans =
4574462251222572352251
bin_2_dec(“0100101111100100110010010110100100101001010010010101111010011101010010101001”)
ans =
22399866065043652727977
bin_2_hex(“0100101111100100110010010110100100101001010010010101111010011101010010101001”)
ans =
4 be4c96929495e9d4a9
oct_2_bin(“3532432436345324764546435345”)
ans =
11101011010100011010100011110011100101011010100111110100101100110100011101011100101
oct_2_dec(“3423432323563455432643242435524242445457735325263326453243245342645327”)
ans =
727762791843212863701450133737761143418605884024736534705687255
oct_2_hex(“3532432436345324764546435345433463427254364534321323123”)
ans =
EB51A8F395A9F4B3475CB1B99C5D58F4AE345A653
dec_2_bin(“3423432323563455442374874327”)
ans =
10110000111111001011111111100010000011010011101010111010110011110001101011111101010011010111
dec_2_oct(“3423432323563455432643242435524242445457735325263326453243245342645327”)
ans =
77373335764716516477107330113172733565105561077056067173304146511645015456117
dec_2_hex(“3423432323563455432643242435524242445457735325263326453243245342645327”)
ans =
7 efb6efd39d4e9f91db04b3d76eea45b88fc5c373db10cd49d28365c4f
hex_2_bin(“71253785 ae6def324534ff”)
ans =
111000100100101001101111000010110101110011011011110111100110010010001010011010011111111
hex_2_oct(“7125378512 ae32546def213ae43535fe2312d23145465787654d2e3c”)
ans =
161112336050452706225066757102353441523277610611322142425062570354523227074
hex_2_dec(“7125378512 ae32546def213ae43535fe2312d23145465787654d2e3c”)
ans =
11915599092607191739039367662030936125233731628115520027914010439228
添加了GUI版本,便于使用,并添加了用户放置无效数字的情况下,当用户放置“a”而不是“a”时,小写字母自动转换为大写字母。所以,至少对我来说,它是没有bug的,但是当然bug报告(如果有的话)/评论/评论是非常欢迎的。
欢迎来到无限制的世界:)
引用作为
迪瓦卡尔·罗伊(2023)。数字系统/基转换器(//www.tianjin-qmedu.com/matlabcentral/fileexchange/11953-number-systems-base-converter), MATLAB中央文件交换。检索.