how do i use sqrt when trying to code a math function
이전 댓글 표시
im trying to code:
sqrt(100^2+(.01x-(100/x))^2)
but i keep getting the invalid expression error.
답변 (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.
카테고리
도움말 센터 및 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!