How do I plot array as first element on it is x-axis and 2nd is y axis , then I get it's equation ?

I have the attached selection sort code I want to plot m variable what I get is 2 lines what I want is the first element (x1,y1), (x2,y2) , ............ Then I want the equation of the graph
Thanks

1 Comment

To make your question clear, just post what is needed to answer your question. What is exactly your problem? how to plot? how to fit a function to your data?

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 23 Aug 2015

Answered:

on 23 Aug 2015

Community Treasure Hunt

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

Start Hunting!