MATLAB Answers

Truxton
0

calculating a number in matlab

Asked by Truxton
on 15 Feb 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?

  0 Comments

Sign in to comment.

1 Answer

Answer by manoj saini on 15 Feb 2013
 Accepted Answer

this would be correct syntax x=-(3+sqrt(9-(4*1*((-8)^-18)))/2) try it

  1 Comment

Truxton
on 15 Feb 2013
It worked! Thanks :)

Sign in to comment.