Invalid Expression "3.57e2.1"
Afficher commentaires plus anciens
Just started learning MatLab, wondering why this command "3.57e2.1" or any decimal in the second number brings back an invalid expression error. Sorry for the basic question. Thanks
3 commentaires
madhan ravi
le 11 Juin 2020
What do you want e2.1 to represent?
KSSV
le 11 Juin 2020
e power integers are allowed.
Andrew Stepp
le 11 Juin 2020
Réponses (2)
madhan ravi
le 11 Juin 2020
1 vote
You can’t use a decimal value for scientific notation.
1 commentaire
Andrew Stepp
le 11 Juin 2020
Star Strider
le 11 Juin 2020
You can certainly calculate it:
3.57*(10^2.1)
evaluated as:
4.494363720105178e+02
however you must do it as you wrote it, or as it is evaluated.
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!