sir,need your valuable suggestion .how to implement comlex equations in matlab such as below.your suggestion wil be priceless to me .

 採用された回答

Shivaputra Narke
Shivaputra Narke 2014 年 2 月 1 日
編集済み: Walter Roberson 2014 年 2 月 1 日
x=-5:0.001:5;
y=-5:0.001:5;
rox=0.2;
roy=0.4;
u=1;
h=(1/(2*pi*rox*roy)).*exp(-(1/2)*((x.^2/rox^2)+(y.^2/roy^2))).*cos(2*pi*u.x);

5 件のコメント

ashok
ashok 2014 年 2 月 1 日
sir ,can you tell me the fundementals of how to implement those type of questions.
The above code will generate a vector result, rather than a matrix result. It would be better to use meshgrid or ndgrid or bsxfun.
X = -5:0.001:5;
Y = -5:0.001:5;
rox = 0.2;
roy = 0.4;
u = 1;
[x, y] = ndgrid(X, Y);
h = (1/(2*pi*rox*roy)) .* exp(-(1/2)*((x.^2/rox^2) + (y.^2/roy^2))) .* cos(2*pi*u*x);
ashok
ashok 2014 年 2 月 1 日
when i start using your code ..the above stated..i am getting this error sir ..what shall i do now ?
ashok
ashok 2014 年 2 月 1 日
</matlabcentral/answers/uploaded_files/7654/error.JPG> when i start using your code ..the above stated..i am getting this error sir ..what shall i do now ?
ashok
ashok 2014 年 2 月 1 日

サインインしてコメントする。

その他の回答 (0 件)

タグ

質問済み:

2014 年 2 月 1 日

コメント済み:

2014 年 2 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by