MATLAB Write a function that receives a plot object and returns the min and max values of the x a...

MATLAB

Write a function that receives a plot object and returns the min
and max values of the x and y data. Your function should have a
single output - a vector containing the data in the following
format. Complete this without using the get/set
functions.

Output vector format: [xmin xmax ymin ymax]

%function stats = PlotStats(plot_object)
% Returns a vector of the min and max values for both the x and y
data.
% end