Software Listing of Author : "Mirko Hrovat"
- Baseline Fit
- License: Freeware
- Price: 0.00


Baseline Fit each column in "x". There did not seem to be a similar function in th file exchange. This routine is simply a wrapper for two Matlab routines, interp1 and ginput. Syntax: [ycorr,yfit] = bf(y,pts,avgpts,method,confirm); ycorr = bf(y); ycorr = bf(y,method); A baseline fit is interpolated from selected points and then applied to the data. The selected points are indices into the column and may be specified explicitly ("pts") or interactively. Arguments following "y" may be in any order. To provide some noise immunity, "avgpts" determines the width in points for the calculation of the mean y(pts). The "method" controls the algorithm applied for the baseline fit, see Matlab's interp1. (Default is 'spline'). "confirm", if specified as the string 'confirm', will allow the user to see the result and to confirm it is...
- Publisher: Mirko Hrovat
- Date Released: 25-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Get Monitor Dimensions
- License: Shareware
- Price:


GETMONDIM returns the dimensions of the specified monitor as a 4 element vector [xstart,ystart,width,height] where values are in pixels in the same manner that the 'ScreenSize' property provides. (xstart,ystart) are the absolute coordinates of the lower left corner. The "monitornumber" is a number associated with each monitor (Default=1). Monitor numbering is defined as the row number of the corresponding monitor in the root property 'MonitorPositions'. The primary monitor is always numbered 1 and always starts at (1,1). 'MonitorPositions' returns coordinates corresponding to the upper left corner and the bottom right corner (Windows convention). Matlab 'Help' on this property is incorrect. GETMONDIM converts these coordinates to the Matlab convention where the lower left corner starts at (1,1). There is a feature with the root...
- Publisher: Mirko Hrovat
- Date Released: 23-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Gmr.m (NMR & MRI Properties)
- License: Freeware
- Price: 0.00


GMR returns the gyromagnetic ratio and other NMR properties for various nuclei as well as the electron. Besides the function format, the command format will work as well, e.g. "gmr Na23 hzpt 3.0". Format: y=gmr(nucleus,unit,b0) "nucleus" = string or number specifying the nucleus (not case sensitive) e.g. '31P','p31', or 31 or even '31'. For some cases specifying the element is sufficient, e.g. 'p' for 'p31'. If "nucleus"='all' (default) then "y" is a cell array of the entire table. "unit" = a string specifying one of the following: 1.) Gyromagnetic ratio unit 2.) Desired parameter value of the following: string label nuclear spin nuclear quadrupole moment in fm^2 nuclear magnetic moment in nuclear magnetons natural abundance in mole percent relative sensitivity wrt 1H quadrupole line width 3.) 'all' - "y" is a structured...
- Publisher: Mirko Hrovat
- Date Released: 13-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Stacked Plot
- License: Shareware
- Price:


Stacked plots are commonly seen in NMR spectroscopy. They often illustrate the evolution of spectra with time or some other parameter. There are several (somewhat equivalent) methods to produce such plots in Matlab. This function serves as a common interface to these various methods. Certainly some methods may be evoked directly, e.g. mesh, but some others are not as obvious, e.g. plot3. In addition a method (style 1) has been added that produces the traditional stacked plot format. The purpose of this program is to educate through sample code and to provide a unified interface to these various styles. Select the method you like best. There did not seem to be available such a program in the file exchange and it took some experimentation and time to explore different Matlab commands. As a result it seemed beneficial to have a common...
- Publisher: Mirko Hrovat
- Date Released: 06-05-2013
- Download Size: 133 KB
- Download
- Platform: Matlab, Scripts
