Adding Inset Plots - MATLAB Cody - MATLAB Central

Problem 55765. Adding Inset Plots

Difficulty:Rate
You can use the axes function to define the position of an empty x/y axis. The position is measured relative the the bottom left corner of the container.
Create a function that will plot the inputs x and y. Your function should also create an inset plot displaying the first 20 elements in x and y. The inset plot should be located in the corner of the original and should be a fraction f the size of the original axes. Your function should return the figure handle as output.

Solution Stats

31.97% Correct | 68.03% Incorrect
Last Solution submitted on Jun 24, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers129

Suggested Problems

More from this Author10

Problem Tags

Community Treasure Hunt

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

Start Hunting!