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!