Software Listing of Author : "Jered Wells"
- lorentzfit1
- License: Shareware
- Price:


a = lorentzfit1(x,y,a0) LORENTZFIT1 fits the input Y(X) with a Lorentzian function of the form Y'(X) = 1./(A(X.^2 + 1)) (i.e. 1-parameter model). INPUTS X : Independent variable values Y : Dependent variable values [Y(X)] OPTION A0 : Define initial guess for parameter A OUTPUT A : Lorentzian parameters A EXAMPLE x = -16:0.1:35; y = 1./15.8./(x.^2 + 1) + randn(size(x))./10; a = lorentzfit1(x,y); Jered R Wells 11/15/11 jered [dot] wells [at] duke [dot] edu See also: lorentzval1, lorentzfit REF: http://www.home.uos.de/kbetzler/notes/fitp.pdf REF: Siewerdsen, et al., (1998). Signal, noise power spectrum, and detective quantum efficiency of indirect-detection flat-panel imagers for diagnostic radiology. Medical Physics, 25(5)
- Publisher: Jered Wells
- Date Released: 03-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- lorentzfit3
- License: Shareware
- Price:


a = lorentzfit3(x,y,a0) LORENTZFIT3 fits the input Y(X) with a Lorentzian function of the form Y'(X) = A1./((X - A2).^2 + A3) (i.e. 3-parameter model). INPUTS X : Independent variable values Y : Dependent variable values [Y(X)] OPTION A0 : Define initial guess [A1 A2 A3] OUTPUT A : List of Lorentzian parameters [A1 A2 A3] EXAMPLE x = -16:0.1:35; y = 19.4./((x - 7).^2 + 15.8) + randn(size(x))./10; a = lorentzfit3(x,y); figure; plot(x,y,'b.','LineWidth',2) hold on; plot(x,lorentzval3(x,a),'r-','LineWidth',2) Jered R Wells 11/15/11 jered [dot] wells [at] duke [dot] edu See also: lorentzval3 REF: http://www.home.uos.de/kbetzler/notes/fitp.pdf
- Publisher: Jered Wells
- Date Released: 19-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- OrthoView3D
- License: Shareware
- Price:


MATLAB GUI for exploring 3D datasets through a sleek and simple interface (sample dataset included) ORTHOVIEW3D GUI for interactive viewing of 3D Volumes ORTHOVIEW3D is used to view orthographic slices of 3D volumes Type in an expression that generates a 3D array then press the Display button 3D expressions such as: rand(50,40,30) or the name or a 3D array variable in the workspace Use the scroll bars to change the number of the slice viewed Use the transpose, flipud, or fliplr to transpose the view, flip it vertically, or horizontally Change the Pixel Size values to the volume's physical dimensions so the aspect ratio is displayed properly (note: you can use relative values for example use 1,3,2 instead of 0.5,1.5,1.0 then press "Adjust Pixel Size" Example: load defrise orthoview3d (Type 'defrise' in the...
- Publisher: Jered Wells
- Date Released: 03-02-2013
- Download Size: 6298 KB
- Download
- Platform: Matlab, Scripts
- R-square: The coefficient of determination
- License: Shareware
- Price:


r2 = rsquare(y,f) RSQUARE computes the coefficient of determination (R-square) value from actual data Y and model data F. INPUTS Y : Actual data F : Model fit OUTPUT R2 : Coefficient of determination EXAMPLE x = 0:0.1:10; y = 2.*x + 1 + randn(size(x)); p = polyfit(x,y,1); f = polyval(p,x); r2 = rsquare(y,f); figure; plot(x,y,'b-'); hold on; plot(x,f,'r-'); Jered R Wells 11/17/11 jered [dot] wells [at] duke [dot] edu
- Publisher: Jered Wells
- Date Released: 17-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Simpson's 1/3 and 3/8 rules
- License: Shareware
- Price:


SIMPSON: Simpson's rule for quadratic and cubic numerical integration RES = SIMPSON(Y) computes an approximation of the integral of Y via Simpson's 1/3 rule (with unit spacing). Simpson's 1/3 rule uses quadratic interpolants for numerical integration. To compute the integral for spacing different from one, multiply RES by the spacing increment. For vectors, SIMPSON(Y) is the integral of Y. For matrices, SIMPSON(Y) is a row vector with the integral over each column. For N-D arrays, SIMPSON(Y) works across the first non-singleton dimension. RES = SIMPSON(X,Y) computes the integral of Y with respect to X using Simpson's 1/3 rule. X and Y must be vectors of the same length, or X must be a column vector and Y an array whose first non-singleton dimension is length(X). SIMPSON operates along this dimension. Note that X must be...
- Publisher: Jered Wells
- Date Released: 27-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts