How can I represent the following equation in code?

1 vue (au cours des 30 derniers jours)
Daniel Naranjo
Daniel Naranjo le 22 Fév 2021
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 commentaire
Walter Roberson
Walter Roberson le 23 Fév 2021
In this context, H might be the Hankel function, https://www.mathworks.com/help/matlab/ref/besselh.html

Connectez-vous pour commenter.

Réponses (2)

R SRIRANJANI RAMAKRISHNAN
R SRIRANJANI RAMAKRISHNAN le 23 Fév 2021
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 le 23 Fév 2021
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

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by