Borrar filtros
Borrar filtros

How can I create a matrix from three columns?

2 visualizaciones (últimos 30 días)
Louise Delaigue
Louise Delaigue el 3 de Ag. de 2017
Comentada: Image Analyst el 3 de Ag. de 2017
Hi there,
I would like to create a matrix that looks like this:
Right now I have three columns in an excel sheet, which are Latitude (lat), Longitude (lon) and Height. Each set of lat/lon corresponds to one Height. I entered the numbers in the picture manually to give an idea of what I want, but I have thousands of lines therefore I would need a code that transpose my data accordingly.
Thanks for your help :)
Louise
  2 comentarios
Cong Ba
Cong Ba el 3 de Ag. de 2017
Is this an xls file or what? If yes, you can use xlsread('filename') to read it.
Image Analyst
Image Analyst el 3 de Ag. de 2017
Three columns????

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 3 de Ag. de 2017
See the documentation on the xlsread (link) function.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by