Plotting latitude, longitude,and signal strength

조회 수: 8 (최근 30일)
Simran Sandhu
Simran Sandhu 2019년 1월 8일
답변: Jacob Halbrooks 2020년 4월 3일
I have a list of latitude and longitude along with signal strength obtained from mobile towers in a certain region. I have all the data in CSV format. In total, I have 4 CSV files.
How can I plot that data in MATLAB?
As a range of signal strength will be shown by different colour and other range will be shown in different colour.
  댓글 수: 2
Bob Thompson
Bob Thompson 2019년 1월 8일
For a color variance like that I would suggest looking into contour().
Simran Sandhu
Simran Sandhu 2019년 1월 8일
편집: Simran Sandhu 2019년 1월 8일
Okay thank you, i will look into that function,,basically I want to show difference in signal strength with respect to different lat and long

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2019년 1월 9일
Read about pcolor, surf, scatter, conourf. All these can be used to plot what you want.
The below link shows the possible plots which can be obtained from MATLAB. YOu can have a look on the link, it has a plot and respective code from which you can learn.
  댓글 수: 8
KSSV
KSSV 2019년 1월 9일
편집: KSSV 2019년 1월 9일
To use contour you should be having a matrix data. With your data..this is what I can get:
[num,txt,raw] = xlsread('powerlevel.csv') ;
lat = num(:,1) ;
lon = num(:,2) ;
val = num(:,3) ;
scatter(lon,lat,10,val,'filled') ; colorbar
m = 100 ;
x = linspace(min(lon),max(lon),m) ;
y = linspace(min(lat),max(lat),m) ;
[X,Y] = meshgrid(x,y) ;
Z = griddata(lon,lat,val,X,Y) ;
contour(X,Y,Z) ;
Simran Sandhu
Simran Sandhu 2019년 1월 9일
Okay thank you so much,, will try to modify it as much as i can.
Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jacob Halbrooks
Jacob Halbrooks 2020년 4월 3일
A new feature is available in R2020a to support importing and visualizing propagation data like this. The feature is available in Communications Toolbox and Antenna Toolbox and supports table-based files or data which contains latitude, longitude, and corresponding values like signal strength. You can learn about the feature here, and below is an example contour map that you can create with it:

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by