Borrar filtros
Borrar filtros

How to add three dimensional data points to MATLAB

3 visualizaciones (últimos 30 días)
Timothy Turk
Timothy Turk el 14 de Sept. de 2020
Comentada: Timothy Turk el 15 de Sept. de 2020
I want to add 3D data points associated with spacecraft debris positions in space. Do I create a 3 x n matrix of Latitude, Longitude, Altitude? The goal is to use the multiobjective genetic algroithm to locate the maximum density of debris objects at a given point in time and plot it.
  6 comentarios
Adam Danz
Adam Danz el 15 de Sept. de 2020
Better to use logical indexing; if your data are a mx3 matrix as you show above,
ineedX = longitude >= 0 & longitude <= 90;
ineedY = latitude >= -180 & latitude <= 180;
ineedZ = altitude >= 650 & altitude <= 850;
select = ineedX & ineedY & ineedZ;
m(select, :)
Timothy Turk
Timothy Turk el 15 de Sept. de 2020
Thank you, Adam.

Iniciar sesión para comentar.

Respuesta aceptada

KSSV
KSSV el 15 de Sept. de 2020

Más respuestas (0)

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by