How can I represent the following equation in code?

1 次查看(过去 30 天)
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
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