- Collect the x,y,z points
- Use the surf function to create the 3D plot
- Set colormap
- Use "hold on" to add inset plot in the same figure
- Add labels for the plot
- Create inset plot
- Set axis limit and aspect ratio
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1799210/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!