필터 지우기
필터 지우기

How to add three dimensional data points to MATLAB

조회 수: 3 (최근 30일)
Timothy Turk
Timothy Turk 2020년 9월 14일
댓글: Timothy Turk 2020년 9월 15일
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
Adam Danz
Adam Danz 2020년 9월 15일
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 2020년 9월 15일
Thank you, Adam.

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

채택된 답변

KSSV
KSSV 2020년 9월 15일

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by