画像の描き方
古いコメントを表示
I(x,y)=cos^2((x^2+y^2)/45^2)
512×512サイズ
上記画像を描くプログラムの作り方を教えてください。
1 件のコメント
Yoshio
2019 年 11 月 1 日
入力データx、yの範囲(定義域)が分かると回答しやすいと思います。
採用された回答
その他の回答 (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サイズに出力する話は、どんな絵をイメージされているかをうかがってからに。。
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!