フィルターのクリア

plus-minus function

54 ビュー (過去 30 日間)
Sean Smith
Sean Smith 2011 年 9 月 30 日
回答済み: Selvakumar 2023 年 8 月 23 日
How would I do the function
Y=B/2*(1-(4*X.^2)/L^2)*(1-Z.^2/D^2);
but before the B i need a plus and minus sign so the variable Y has all the values for positive and negative

採用された回答

Honglei Chen
Honglei Chen 2011 年 9 月 30 日
Hi Sean,
You can do something like
Y=B/2*(1-(4*X.^2)/L^2)*(1-Z.^2/D^2);
Y = [Y -Y];
HTH

その他の回答 (1 件)

Selvakumar
Selvakumar 2023 年 8 月 23 日
X=B−√B2+16A2A

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by