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!


