Hi Sam,
I understand that you want to get elevation data of The Vandenberg Space Force Base region and further plot this data as a 3D plot and incorporate a rocket model from a “.stl" file in the plot.
To address the issue of obtaining the elevation data, you can follow these steps -
- Download a Digital Elevation Map (DEM), commonly used for representing terrain data.
- Utilize the REST API endpoint provided by the "OpenTopography" website to obtain the ".Tiff" elevation data file.
Further to address the issue of incorporating the rocket model into the plot, you can follow these steps-
- Use the "imread" function in MATLAB’s "Mapping Toolbox" to read the elevation matrix from ".tiff" file into the workspace.
- Use the "meshgrid" function and "surf" function to plot the elevation matrix in 3D.
- Next, to add the rocket model to the plot:
- Use the “hold on” command to maintain the current figure
- Import the ".stl" model as a geometry using the "fegeometry" function into the same figure that contains the elevation plot.
- Apply geometric transformation like translation, scaling, rotation on the geometry as per your requirements.
- Plot the PDE geometry using the "pdegplot" function.
Following these steps, the resulting plot will resemble the one described below:
Further, refer to the following documentation to get more understating on the functions mentioned above:
I hope, you find the provided solution useful, and this helps you in plotting the elevation of the space base in 3D and adding the rocket model to the plot.
Regards,
Vinayak Luha.