我正在尝试使用以下 fprintf 代码
      n
      m
     fprintf('The minimum value of the modulus of the image of C_r is %d \n\nThe correspoding point is at %d \n\n',m,n)
我得到了结果
  n =
  3.632213809443102 + 3.680287679864827i
m =
   5.170831128945713
The minimum value of the modulus of the image of C_r is 5.170831e+000 
The correspoding point is at        3.632214e+000 
我分别打印了 n 和 m 的值,以显示我希望它们如何显示 - 如何让 fprintf 以更高的精度显示数字?我尝试更改 %d 条款但无济于事
怎么样
fprintf( '%.15f\n', m );
打印15位数字
| 归档时间: | 
 | 
| 查看次数: | 7621 次 | 
| 最近记录: |