Question

I'm trying to plot GPX data using the geoshow function in MATLAB. Ideally, I want to...

I'm trying to plot GPX data using the geoshow function in MATLAB. Ideally, I want to be able to select the GPX file from a file explorer, which is why I used the uigetfile function.

What I get from my current code is the full plot of data (lats/longs) with the correct axes. However, I'm having a tough time getting this data overlayed onto a map.

I've tried using the webmap functions but this is not exactly what my team envisions due to the extremely limited access to the Internet (in which we would be pulling public map servers from.) I'm constrained to just very simple maps, which is fine!

This is the code that I first proposed that does exactly what I want in terms of functionality. Plot a path from start to finish on top of a physical map:

% Window prompt to retrieve file. %
GetFile = uigetfile('','Select a file.');
% Read GPX file. %
GPXFile = gpxread(GetFile, 'FeatureType', 'track');

% Retrieve Latitude & Longitudal data from GPX file. %
Lat = GPXFile.Latitude;
Lon = GPXFile.Longitude;

% Base map. %

webmap('World Imag');
colors = {'red'};
wmline(GPXFile, 'Color', colors);
wmzoom(10)
webmap('World Topographic Map');
colors = {'red'};
wmline(GPXFile, 'Color', colors);
wmzoom(10)

After proposal, I have "dumbed" it down to this:

clc; clear;

% Select file
GetFile = uigetfile('','Select a file.');
% Read data from a GPX file. 
trk = gpxread(GetFile, 'FeatureType', 'track');

% Establish Lat/Lon from data
Lat = trk.Latitude;
Lon = trk.Longitude;

% Line plot from data 
geoshow(Lat, Lon, 'LineWidth', 2)

I can't seem to figure out how to get this data onto a map.

Again, I'm expecting to get a path onto a specific map region depending on where the longitude and latitude is. I'd like for the longs/lats to dictate where my axes are on the map.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
I'm trying to plot GPX data using the geoshow function in MATLAB. Ideally, I want to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But...

    I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But I wanna get a plot of completely sinusoidal form. If I can magnify the plot and expand x-axis, maybe we can get the sinusoidal form. So help me with this problem by using matlab. Example is attached in below. One is the plot from this code and another is example. function second_order_ode2 t=[0:0.001:1]; initial_x=0; initial_dxdt=0; [t,x]=ode45(@rhs,t,[initial_x initial_dxdt]); plot(t,x(:,1)) xlabel('t') ylabel('x')...

  • I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But...

    I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But I wanna get a plot of completely sinusoidal form. If I can magnify the plot and expand x-axis, maybe we can get the sinusoidal form. So help me with this problem by using matlab. Example is attached in below. One is the plot from this code and another is example. function second_order_ode2 t=[0:0.001:1]; initial_x=0; initial_dxdt=0; [t,x]=ode45(@rhs,t,[initial_x initial_dxdt]); plot(t,x(:,1)) xlabel('t') ylabel('x')...

  • I'm trying to use the odeint function or the quad function to integrate my integrand in my calc_H...

    I'm trying to use the odeint function or the quad function to integrate my integrand in my calc_Hmatrix function. however I am not sure what my y0 or my t would need to be in order to get the code to run properly. please help, if more information is needed I can update this post Project1(1) (1) (1) x S ㄨ scipyintegrate.odeint--Sc | + jupyter Project1(1) ()(1r File Edit View Insert Cell Kernel Widgets Help +x4r,수+H.CCode Trusted Python 3 O...

  • Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any d...

    Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any difference! The first picture is the question i need to answer. The picture below is used as reference to answer the question. The last picture (below) is the into to the problem, and is used as reference. 1. Use Matlab to create the following single plot with three subplots. All titles, gridlines, and axis labels should be as shown. Arc System Response 15 E...

  • I have to make an Inventory excel sheet and I'm having some trouble trying to figure...

    I have to make an Inventory excel sheet and I'm having some trouble trying to figure out how to calculate the "Balance on Hand." Here are the instructions: The Inventory scenario is based on a fictitious custom bike builder. Of course, the data given for the scenario is a small sampling of what a shop’s inventory would be. The data represents an end of month quantity and is being used to determine, the balance on hand and which items need...

  • I need help on how to find the atmospheric pressure from the scatter plot and trend...

    I need help on how to find the atmospheric pressure from the scatter plot and trend line I made with the results from my Boyle's Law lab. I don't know if my scatter plot is correct. I need the atmospheric pressure in order to fill in Table 5 and answer some questions. 24. Use the data in Data Table 1 and Data Table 3 to create a scatter-plot graph of 1/Average Volume vs. Pressure; with “1/Average Volume (mL-1)” on the...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • One example of computer-aided design (CAD) is building geometric structures inter- actively. In Chapter 4, we...

    One example of computer-aided design (CAD) is building geometric structures inter- actively. In Chapter 4, we will look at ways in which we can model geometric objects comprised of polygons. Here, we want to examine the interactive part. Let’s start by writing an application that will let the user specify a series of axis- aligned rectangles interactively. Each rectangle can be defined by two mouse positions at diagonally opposite corners. Consider the event listener canvas.addEventListener("mousedown", function() { gl.bindBuffer(gl.ARRAY_BUFFER, vBuffer); if...

  • Hello, I'm having trouble with the trial balance. Can someone please help me with it. I...

    Hello, I'm having trouble with the trial balance. Can someone please help me with it. I think something is wrong with the adjusted trial balance. khampton ACCOUNTING SERVICE INC Dear Newbie, Welcome to Hampton! My name is Julio Antoni, your supervisor. We believe the best way for you to get familiar with what you are going to be doing here is to throw you right in, so we are asking you to start working on the books for us right...

  • 1)I need introduction will be different from this introduction but in the same subject and the sa...

    1)I need introduction will be different from this introduction but in the same subject and the same idea (with littel different) 2)Select the discussion ,results ,conclusion , methods and references from this search INTERNATIONAL JOURNAL OF SCIENTIFIC& TECHNOLOGY RESEARCH VOLUME 2, ISSUE 9 SEPTEMBER 2013 ISSN 2277-8616 Dyes Removal From Textile Wastewater Using 1 PREFACE 2 MATERIALS AND METHODS the largest Bangladesh, the textile industry manufacturing industries. in every stage of textile industry 2.1 Sample and Adsorbents Collection various types...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT