Code covered by the BSD License  

Highlights from
EzyFit 2.42

image thumbnail

EzyFit 2.42

by

 

27 Feb 2006 (Updated )

A free curve fitting toolbox for Matlab

getslope (Ezyfit Toolbox)
getslope (Ezyfit Toolbox)
EzyFit Function Reference<< Prev | Next >> 
getslope
Slope of the current line.

Description
getslope displays the equation of the current line of the figure. Use 
the menu 'Insert > Line' to draw a line first. getslope allows for 
rough curve fitting "by eye". You may also use the shortcut Ctrl+G if 
the Ezyfit menu has been installed (see efmenu). 
 
Depending of the axis types, the equation of the line will be: 
     Y = N*X+A         for X linear and Y linear 
     Y = A*X^N         for X log and Y log 
     Y = A*EXP(N*X)    for X linear and Y log 
     Y = A+N*LOG(X)    for X log and Y linear (LOG = natural logarithm) 
 
getslope('Property1',...) specifies the display mode: 
     'figure'   output the result in the figure (by default) 
     'command'  output the result in the command window 
     'nodisplay'  no output 
     'slope'    displays only the slope N (by default). 
     'equation' displays the full equation (e.g., N*X+A) 
 
[N, A] = getslope(...) also returns the parameters N and A of the 
equation. 
 
See Also
showslope, getlineinfo, plotsample, rmfit, efmenu. 
 
Published output in the Help browser 
   showdemo getslope 

 Previous: getlineinfoNext: gridc 

2005-2014 EzyFit Toolbox 2.42

Contact us