Numerical Integration using intgrad3
Show older comments
Hi,
I am trying to calculate the surface from gradient. And I am using intgrad3 get there. The function runs without throwing an error but the surface doesnot look normal to the gradient. Also the values in the ouptut produced by intgrad3 are way higher than what I expect. I realize this may be because of the constant of integration but the range is high too. Any ideas of what I might be doing wrong?
Here is the data and the function:
Answers (1)
darova
on 11 Mar 2020
0 votes
If i understood you correctly: you have normal vector and want to rebuild surface
So for each vector you can create small plane as below

all you have to do is place that plane in appropriate Z coordinate

results

Categories
Find more on Clustering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!