Generate a geographical heat map
古いコメントを表示
Hello,
I am trying to generate a heat map on mapping toolbox.
Here I have the coordinates of the centers in my grid:
Lat = 54.2 + 0.1/6 * [11 9 7 5 3 1]' * ones(1,3) ;
Lon = 9.15 + 0.025 * ones(6,1) * [1 3 5] ;
coord = [ [Lat(:,1) , Lon(:,1)] ; [Lat(:,2) , Lon(:,2)] ; [Lat(:,3) , Lon(:,3)] ] ;
So coord is a 18 by 2 matrix, referring to the coordinates of 18 points.
Let us assume I want to assign a random value to each point, then I can define
values = rand(18, 1) .
How can I generate a heat map with such values in such locations?
How can I make each 'pixel' of the heat map like a sqare with size 0.05 by 0.033 degrees in longitude and latitude?
Thank you in advance for your help :)
2 件のコメント
Adam Danz
2021 年 1 月 20 日
A heatmap is a deptiction of 3D data in a 2D plane. Your Lat and Lon coordinates define the 2D plane but the 3rd dimension is missing in your description. The "values" vector is 1D so it's unclear how it should map onto the 2D surface of the heatmap.
Maurilio Matracia
2021 年 1 月 20 日
採用された回答
その他の回答 (1 件)
Sami
2025 年 3 月 16 日
0 投票
if true % code end% Define circuit parameters L = 1; % Inductor (H) C = 1; % Capacitor (F) R = 1; % Resistor (Ohm)
% Define the transfer function num = [1]; % Numerator den = [L*C, R*C, 1]; % Denominator
H1 = tf(num, den);
% Display the transfer function disp('Transfer Function of RLC Circuit:'); H1
% Plot Bode plot to analyze frequency response bode(H1); grid on; title('Bode Plot of RLC Circuit');
カテゴリ
ヘルプ センター および File Exchange で Geographic Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


