Filter löschen
Filter löschen

plus-minus function

94 Ansichten (letzte 30 Tage)
Sean Smith
Sean Smith am 30 Sep. 2011
Beantwortet: Selvakumar am 23 Aug. 2023
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

Akzeptierte Antwort

Honglei Chen
Honglei Chen am 30 Sep. 2011
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

Weitere Antworten (1)

Selvakumar
Selvakumar am 23 Aug. 2023
X=B−√B2+16A2A

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by