有没有任何实施RFC4648 https://tools.ietf.org/html/rfc4648(“Base16、Base32 和 Base64 数据编码”)Matlab 中?
在 MATLAB 中您可以轻松使用嵌入式Java 功能 http://www.mathworks.com/help/techdoc/matlab_external/f44062.html。 MATLAB 附带Apache 通用编解码器 http://commons.apache.org/codec/Java 类路径上可用的库。所以你可以这样做:
str = 'http://stackoverflow.com/q/11659710/';
encoder = org.apache.commons.codec.binary.Base64();
result = char(encoder.encode(str-0))';
输出:
>> result
result =
aHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3EvMTE2NTk3MTAv
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)