Mostra commenti meno recenti
I(x,y)=cos^2((x^2+y^2)/45^2)
512×512サイズ
上記画像を描くプログラムの作り方を教えてください。
1 Commento
Yoshio
il 1 Nov 2019
入力データx、yの範囲(定義域)が分かると回答しやすいと思います。
Risposta accettata
Più risposte (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
il 1 Nov 2019
0 voti
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!