回答 (1 件)

John D'Errico
John D'Errico 2018 年 9 月 22 日

0 投票

As you wrote it, this is a test for EQUALITY. It is NOT an assignment.
y==sqrt(16-x.^2)-2
If you wanted to assign that result to y, then you use =
y=sqrt(16-x.^2)-2
When you get an error, look for syntax problems like that.

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

質問済み:

2018 年 9 月 22 日

回答済み:

2018 年 9 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by