Borrar filtros
Borrar filtros

plus-minus function

94 visualizaciones (últimos 30 días)
Sean Smith
Sean Smith el 30 de Sept. de 2011
Respondida: Selvakumar el 23 de Ag. de 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

Respuesta aceptada

Honglei Chen
Honglei Chen el 30 de Sept. de 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

Más respuestas (1)

Selvakumar
Selvakumar el 23 de Ag. de 2023
X=B−√B2+16A2A

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by