2次元グリッドマップの作成方法と、各グリッドへのパラメーターの格納の方法を教えてください。
3 ビュー (過去 30 日間)
古いコメントを表示
2次元グリッドマップの作成方法と、各グリッドへのパラメーターの格納の方法を教えてください。
0 件のコメント
採用された回答
Etsuo Maeda
2019 年 7 月 22 日
"二次元グリッドマップ"、"グリッドへのパラメーター格納" という言葉の意味がよく分かりませんが、グリッドをつくり、各点にある値を持たせるということであれば、meshgrid関数など使えばよいかと思われます。
clear; close all;
m = linspace(1, 10, 5);
n = linspace(1, 10, 5);
% create grid
[X, Y] = meshgrid(m, n);
% create dummy intensity
C = rand(size(X));
% show pcolor
pcolor(X, Y, C)
HTH
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!