How can I create a matrix from three columns?

2 次查看(过去 30 天)
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

回答(1 个)

Star Strider
Star Strider 2017-8-3
See the documentation on the xlsread (link) function.

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by