在matlab中如何将16进制数写入.txt文档0也要写入

fprintf(fid, '%04x', a);

原文地址:https://www.cnblogs.com/zhongguo135/p/11198096.html