Show older comments
I(x,y)=cos^2((x^2+y^2)/45^2)
512×512サイズ
上記画像を描くプログラムの作り方を教えてください。
1 Comment
Yoshio
on 1 Nov 2019
入力データx、yの範囲(定義域)が分かると回答しやすいと思います。
Accepted Answer
More Answers (2)
どんな絵でしょうか。。 プロットするなら fsurf 関数も便利。 https://jp.mathworks.com/help/matlab/ref/fsurf.html
fsurf(@(x,y) cos((x.^2+y.^2)/45.^2).^2)

2次元なら fcontour 関数かな。
fcontour(@(x,y) cos((x.^2+y.^2)/45.^2).^2,'Fill','on')

512×512サイズに出力する話は、どんな絵をイメージされているかをうかがってからに。。
tomoyuki fujieda
on 1 Nov 2019
0 votes
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!