rounding the imaginary part of the number

15 ビュー (過去 30 日間)
Luccas S.
Luccas S. 2021 年 7 月 15 日
回答済み: Alan Stevens 2021 年 7 月 15 日
Z1 =
0.0000e+00 + 7.8765e-04i
I would like the result to appear as 0.0008i in the imaginary part, how to do this?


Alan Stevens
Alan Stevens 2021 年 7 月 15 日
Z = 0.0000e+00 + 7.8765e-04*1i;
format shortG
ans =
0 + 0.0008i

その他の回答 (0 件)


Find more on Elementary Math in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by