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일

1 개 추천

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일

0 개 추천

X=B−√B2+16A2A

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2011년 9월 30일

답변:

2023년 8월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by