Question: 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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
