Why am I receiving this error?
古いコメントを表示
a = 3*cos(pi)-2*ln(3)+e^4
Error: File: matlabassignment1.m Line: 9 Column: 19
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
採用された回答
その他の回答 (2 件)
Matt J
2022 年 12 月 31 日
0 投票
Try deleting line 9 and retyping it.
Walter Roberson
2022 年 12 月 31 日
0 投票
In between the n and the ( you have unicode character decimal 8289, which is known as "Function Application". It is an invisible character in most fonts
Note: e^4 should be written as exp(4) and ln(3) should be log(3)
There turn out to be relatively few programming languages that use ln to indicate logarithm.
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!