Leveling a surface within MATLAB

Hello everyone.
I have a 466307x3 matrix of a surface and my aim is to calculate surface parameter Sa. May I know how to level the surface (remove surface slope) like you would in a software like mountain maps or sensomap?
Thanks for your support.

4 Comments

I don't understand the question. You want to interpolate the surface? Or maybe you are looking for griddata?
There are many ways to "flatten" even a 1-D curve. Lots of different methods. There are even more so with a 2-D surface (e.g. the MATLAB peaks orange mountain logo). So you need to be specific as to what method you'd like to use. What if you just took the convex hull with convn() and used that to flatten it? This would be like if you stood the surface on a table top. The surface would fall and tilt until just 3 points were in contact with the table top, like a tripod.
Thanks everyone for your quick response, I am still learning to use MATLAB and it is an interesting experience.
I will try the function suggesting in the link by 'rubidan' and also use convn().
Thanks again.

Sign in to comment.

Answers (0)

Asked:

on 22 Jun 2020

Commented:

on 23 Jun 2020

Community Treasure Hunt

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

Start Hunting!