Hi!
I have a matrix fin3 where the 1st column is latitude, the 2nd longitude and the third height, How can I make a surface plot of heights? I tried
lat= fin3(:,1);
long = fin3(:,2);
height = fin3(:,3);
surf(lat,long,height)
but I'm getting an error saying height needs to be a matrix.
Any clues?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 12 日

1 投票

You can't use surf, use
plot3(lat,long,height)

カテゴリ

質問済み:

2013 年 10 月 12 日

回答済み:

2013 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by