필터 지우기
필터 지우기

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