2次元グリッドマップ​の作成方法と、各グリ​ッドへのパラメーター​の格納の方法を教えて​ください。

5 次查看(过去 30 天)
Ryo TAJIMA
Ryo TAJIMA 2019-7-15
2次元グリッドマップの作成方法と、各グリッドへのパラメーターの格納の方法を教えてください。

采纳的回答

Etsuo Maeda
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 个)

类别

Help CenterFile Exchange 中查找有关 行列および配列 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!