how do i use sqrt when trying to code a math function
조회 수: 5 (최근 30일)
이전 댓글 표시
im trying to code:
sqrt(100^2+(.01x-(100/x))^2)
but i keep getting the invalid expression error.
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 2월 21일
sqrt(100^2+(.01x-(100/x))^2)
^^
MATLAB has absolutely no implied multiplication. .01x is a syntax error, not 0.01 times x.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Fixed-Point Code Generation in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!