calculating a number in matlab

조회 수: 2 (최근 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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by