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 comentarios

madhan ravi
madhan ravi el 11 de Jun. de 2020
What do you want e2.1 to represent?
KSSV
KSSV el 11 de Jun. de 2020
e power integers are allowed.
Andrew Stepp
Andrew Stepp el 11 de Jun. de 2020
I'm wanting to simplify 3.57*(10^2.1)

Iniciar sesión para comentar.

Respuestas (2)

madhan ravi
madhan ravi el 11 de Jun. de 2020

1 voto

You can’t use a decimal value for scientific notation.
Star Strider
Star Strider el 11 de Jun. de 2020

1 voto

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.

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 11 de Jun. de 2020

Respondida:

el 11 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by