calculating a number in matlab

3 ビュー (過去 30 日間)
Truxton
Truxton 2013 年 2 月 15 日
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?

採用された回答

manoj saini
manoj saini 2013 年 2 月 15 日
this would be correct syntax x=-(3+sqrt(9-(4*1*((-8)^-18)))/2) try it
  1 件のコメント
Truxton
Truxton 2013 年 2 月 15 日
It worked! Thanks :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by