Afficher commentaires plus anciens
I(x,y)=cos^2((x^2+y^2)/45^2)
512×512サイズ
上記画像を描くプログラムの作り方を教えてください。
1 commentaire
Yoshio
le 1 Nov 2019
入力データx、yの範囲(定義域)が分かると回答しやすいと思います。
Réponse acceptée
Plus de réponses (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
le 1 Nov 2019
0 votes
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!