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

2 views (last 30 days)
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
Azzi Abdelmalek
Azzi Abdelmalek on 23 Aug 2015
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.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 23 Aug 2015
Use plot to plot your data, and use fit function to fit a function to your data

Categories

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

Community Treasure Hunt

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

Start Hunting!