- real(X)- Gives Real Part
- imag(X) Gives Imaginary Part
how to change this value in number??????
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Prakash Choudhary
le 26 Juin 2019
Commenté : KALYAN ACHARJYA
le 28 Juin 2019
X=1.0202e+05 - 6.1123e+11i
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 26 Juin 2019
Modifié(e) : KALYAN ACHARJYA
le 26 Juin 2019
>> format long g
>> X=1.0202e+05 - 6.1123e+11i
X =
102020-611230000000i
Here i denotes complex, which is a number
The display number depends on how you set the format (you can change the default setting)
Example:
>> format long
or
>> format short
For detail please see the Matlab documentation.
To avoid i (Complex Number Notation), you have to deal with individually
Example:
>> real(X)
ans =
102020
>> imag(X)
ans =
-611230000000
Hope it helps!
6 commentaires
KALYAN ACHARJYA
le 28 Juin 2019
X=1.0202e+05 - 6.1123e+11i >> Complex number
Y=X*2, here 2 is real number
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Descriptive Statistics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!