No BSD License  

Highlights from
fig_regress

2.0

2.0 | 4 ratings Rate this file 2 Downloads (last 30 days) File Size: 950 Bytes File ID: #9618

fig_regress

by Elakkat Dharmaraj Gireesh

 

13 Jan 2006 (Updated 20 Jan 2006)

Calculates regression from a figure open

| Watch this File

File Information
Description

A convenient way to calculate slope of traces shown in Matlab figures.

Type fig_regress in Matlab command line. The control will go to the current figure. Select two points between which you need to calculate the slope. The result will come in the command line.

Required Products Statistics Toolbox
MATLAB release MATLAB 7 (R14)
Other requirements MATLAB Version 7.1.0.246 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
16 Jan 2006 John D'Errico

Despite the author's claim, this function returns no argument. It defines the value internally, but since it is a function, with no outputs, NOTHING is returned.
This function also requires the statistics toolbox, NOT reflected in the submission comments or the documentation. Since no use is made of the other outputs of regress, polyfit would be a far better choice, since all users have that code.
I'd also like to see a better description of the behavior of this function, making it clear to the user that only data between successive mouse clicks in x is utilized. No error checks are done at all.
Too many problems.

16 Jan 2006 urs (us) schwarz

simple scriptlet in disguise; probably once a quick-and-dirty fix for a narrowly defined project (it crashes for anything more sophisticated than one line); no general use for this community at large as there are many other ways to do the same - but better; no new insights/tricks for programmers
us

17 Jan 2006 Mathew Adelaide  
20 Jan 2006 Lisy Sebastien

Useful tool. But it would be nice if the process can me made smoother.

Please login to add a comment or rating.
Updates
18 Jan 2006

Software requirements

20 Jan 2006

Updated for taking data from figures with multiple traces.

Tag Activity for this File
Tag Applied By Date/Time
regression in figure Elakkat Dharmaraj Gireesh 22 Oct 2008 08:12:28

Contact us at files@mathworks.com