Azzera filtri
Azzera filtri

plus-minus function

94 visualizzazioni (ultimi 30 giorni)
Sean Smith
Sean Smith il 30 Set 2011
Risposto: Selvakumar il 23 Ago 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

Risposta accettata

Honglei Chen
Honglei Chen il 30 Set 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

Più risposte (1)

Selvakumar
Selvakumar il 23 Ago 2023
X=B−√B2+16A2A

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by