Importing coordinates from excel and making points.

Hello. I need to import 3D coordinates from excel to matlab and make points in matlab from those coordinates, I have three columns for each X, Y and Z coordinate. Thanks for help

 Respuesta aceptada

KSSV
KSSV el 20 de Jun. de 2018
[num,txt,raw] = xlsread('myfile.xlsx') ;
X = num(:,1) ;
Y = num(:,2) ;
Z = num(:,3) ;
plot3(X,Y,Z,'.')

9 comentarios

Matija Kosak
Matija Kosak el 20 de Jun. de 2018
Does xlsx file must be in a specific folder?
KSSV
KSSV el 20 de Jun. de 2018
Two options:
1. Run the code in the folder where file is resent.
2. Give filename with complete path and run the code.
Matija Kosak
Matija Kosak el 20 de Jun. de 2018
Editada: Matija Kosak el 20 de Jun. de 2018
Is it possible to write code to make path like on picture?
KSSV
KSSV el 20 de Jun. de 2018
YOu have coordinates of the path?
Matija Kosak
Matija Kosak el 20 de Jun. de 2018
I have coordinates for those points. I would need some code that can make path from them.
KSSV
KSSV el 20 de Jun. de 2018
share the data.
Matija Kosak
Matija Kosak el 20 de Jun. de 2018
I can't upload directly. So this is excel file with coordinates, you can see it's not in correct order of path I want to make, so is there any code you can use to make path that is similar to picture.
Matija Kosak
Matija Kosak el 21 de Jun. de 2018
Do you maybe know any way that is possible? maybe something with point cloud?
Abel Francis
Abel Francis el 18 de Oct. de 2020
Editada: Abel Francis el 18 de Oct. de 2020
Is it possible to import coordinates in DMS from excel file into MATLAB?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Jun. de 2018

Editada:

el 18 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by