sir,how to implement multiplications of exponential equations in matlab.

1 vue (au cours des 30 derniers jours)
ashok
ashok le 1 Fév 2014
Commenté : ashok le 1 Fév 2014
how can i multiply a sinusoidal grating with a two dimensional guassian function h(x,y).

Réponse acceptée

Walter Roberson
Walter Roberson le 1 Fév 2014
[X, Y] = ndgrid( -5:.1:5, 3:.01:4); replace the constants with the limits for x and y
gauss_mat = h(X, Y);
grating = ... whatever over X and Y
result = grating .* gauss_mat;

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by