How can I represent the following equation in code?

조회 수: 1 (최근 30일)
Daniel Naranjo
Daniel Naranjo 2021년 2월 22일
답변: Walter Roberson 2021년 2월 23일
How can I represent the following equation in code?
I tried this
abs((e.^(j*w)).*H)
but the parenthesis disappear.
I need to write in code to be able to change the value of the variables. thanks for your help
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 2월 23일
In this context, H might be the Hankel function, https://www.mathworks.com/help/matlab/ref/besselh.html

댓글을 달려면 로그인하십시오.

답변 (2개)

R SRIRANJANI RAMAKRISHNAN
R SRIRANJANI RAMAKRISHNAN 2021년 2월 23일
h(e^jw) is a. function. After substituting the values, it is assigned to a variable. That variable can be compared with this value.

Walter Roberson
Walter Roberson 2021년 2월 23일
w = linspace(-5,5);
hejw = abs(besselh(1, exp(1j*w)));
mask = 0.7943 <= hejw & hejw <= 0.8913;
plot(w, hejw, 'k-');
hold on
scatter(w(mask), hejw(mask), 'b*');
hold off

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by