plus-minus function

94 次查看(过去 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 CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by