MATLAB中使用fprintf函数实现矩阵原样输出

时间:2024-10-14 05:40:12

1、以a = [1,2,3; 4,5,6]矩阵为例

MATLAB中使用fprintf函数实现矩阵原样输出

2、fprintf('a: %f', a);

MATLAB中使用fprintf函数实现矩阵原样输出

3、类似于c语言中的格式化输出,%f表示输出为浮点数,默认小数点后6位。

© 2025 手抄报圈
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com