calculating a number in matlab

3 vues (au cours des 30 derniers jours)
Truxton
Truxton le 15 Fév 2013
Hello, I am trying to simply calculate a number in matlab, and for some reason im getting this error:
EDU>> x=-((3+sqrt(9-(4*1*(-8^-18)))/2)
x=-((3+sqrt(9-(4*1*(-8^-18)))/2)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
anyone know whats going on here?

Réponse acceptée

manoj saini
manoj saini le 15 Fév 2013
this would be correct syntax x=-(3+sqrt(9-(4*1*((-8)^-18)))/2) try it
  1 commentaire
Truxton
Truxton le 15 Fév 2013
It worked! Thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Linear Algebra 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!

Translated by