how to find out slope

2 views (last 30 days)
Mayank Lakhani
Mayank Lakhani on 24 Sep 2015
Answered: Walter Roberson on 24 Sep 2015
plot(flip(f2),phsre(11,:),'-*'); xlim([7.5e10 11e10]);
i want to find out slope of this graph. how shoud i do it.

Answers (1)

Walter Roberson
Walter Roberson on 24 Sep 2015
pp = polyfit(flip(f2),phsre(11,:),1);
slope = pp(1);

Categories

Find more on View and Analyze Simulation Results in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!