tag:www.mathworks.com,2005:/matlabcentral/fileexchange/feedMATLAB Central File Exchangeicon.pnglogo.pngMATLAB Central - File ExchangeUser-contributed code library2014-12-19T13:40:19-05:00226181100tag:www.mathworks.com,2005:FileInfo/472212014-07-14T05:28:38Z2014-12-19T18:17:43ZNumeric to English WordsConvert a numeric scalar to a string giving the English name of the number value (GB/US).<p>Convert a numeric scalar to a string with the number value given in English words, for example 1111 -> 'one thousand one hundred and eleven'.</p>
<p>The function accepts a scalar of any numeric class: single, double, int, or uint. For integer types, the whole precision can be used.</p>
<p>An options structure allows the user to select:
<br />* upper/lower/title/sentence character case.
<br />* the number type selection: ordinal/decimal/highest group suffix.
<br />* the number of significant digits or order of precision.
<br />* the use of commas between magnitude groups.
<br />* a 'positive' prefix for values>=0.
<br />* either North American or British/Commonwealth English (with 'and' before the tens/ones).
<br />* the numbering scale: short/long/Peletier/Rowlett.</p>
<p>### Bonus Functions / Scripts ###</p>
<p>The following bonus example usage files are also included:
<br />* "num2words_rat" convert a numeric to a string with an improper fraction in words.
<br />* "num2words_bbc" compare the output of "num2words" with a real-world number.
<br />* "num2words_vpi" compare the output of "num2words" with "vpi2english".</p>
<p>### Examples ###</p>
<p>num2words(0)
<br /> ans = 'zero'</p>
<p>num2words(1024)
<br /> ans = 'one thousand and twenty-four'</p>
<p>num2words(-1024)
<br /> ans = 'negative one thousand and twenty-four'</p>
<p>num2words(1024, struct('pos',true, 'case','title', 'hyphen',false))
<br /> ans = 'Positive One Thousand and Twenty Four'</p>
<p>num2words(1024, struct('type','ordinal', 'case','sentence'))
<br /> ans = 'One thousand and twenty-fourth'</p>
<p>num2words(1024, struct('AE',true, 'order',1)) % round to the tens.
<br /> ans = 'one thousand twenty'</p>
<p>ord = -10; % the 10th decimal digit.
<br />num2words(pi-mod(pi,10^ord), struct('order',ord))
<br /> ans = 'three point one four one five nine two six five three five'</p>
<p>num2words(intmax('uint64'), struct('sigfig',3, 'comma',false))
<br /> ans = 'eighteen quintillion four hundred quadrillion'</p>
<p>num2words(intmax('uint64'), struct('sigfig',3, 'type','highest'))
<br /> ans = 'eighteen point four quintillion'</p>
<p>num2words(intmax('uint64'), struct('sigfig',3, 'scale','long'))
<br /> ans = 'eighteen trillion, four hundred thousand billion'</p>
<p>val = 1234.56;
<br />sprintf('%s dollars and %s cents',num2words(floor(val)),num2words(100*rem(val,1)))
<br /> ans = 'one thousand, two hundred and thirty-four dollars and fifty-six cents'</p>Stephen Cobeldickhttp://www.mathworks.com/matlabcentral/fileexchange/authors/186085MATLAB 7.11 (R2010b)MATLAB135771809122725331743361434095344643938942833falsetag:www.mathworks.com,2005:FileInfo/488112014-12-19T17:55:30Z2014-12-19T17:55:30ZImage isophotesThe function extracts isophotes from an arbitrary image<p>isophote.m A function for extracting isophotes from an image
<br />main.m A sample program which uses isophote.m to extract isophotes from the well-known cameraman image</p>Vahid K. Alilouhttp://www.mathworks.com/matlabcentral/fileexchange/authors/386715MATLAB 7.5 (R2007b)MATLABfalsetag:www.mathworks.com,2005:FileInfo/488102014-12-19T17:18:52Z2014-12-19T17:18:52ZVisualize Reference FrameAdd a reference frame visualization using r/g/b to represent the x/y/z.<p>This function adds a reference frame a specified parent or the current axes using red/green/blue to represent the x, y, and z-directions respectively. An hgtransform object is returned that is the parent of three line objects representing the specified axes. A number of parameters can be varied allowing the user to adjust the reference frame representation as needed.</p>Michael Kutzerhttp://www.mathworks.com/matlabcentral/fileexchange/authors/501406MATLAB 8.3 (R2014a)falsetag:www.mathworks.com,2005:FileInfo/488072014-12-19T15:50:50Z2014-12-19T15:50:50Zcostas receivercostas receiver for DSB-SC DEMODULATION<p>COSTAS RECEIVER FOR DEMODULATION OF DSB-SC SIGNAL</p>Salman Qadirhttp://www.mathworks.com/matlabcentral/fileexchange/authors/217328MATLAB 8.3 (R2014a)MATLABImage Processing Toolbox40406falsetag:www.mathworks.com,2005:FileInfo/377462012-08-06T18:37:15Z2014-12-19T15:23:23ZTTAlgorithmMeasures the transit time between physiological waveforms for Pulse Wave Velocity<p>To facilitate the calculation of the transit time between physiological waveforms, (pressure, velocity, area, flow), this software offers four algorithms which can be applied to clinical/synthetic data. Continuous waveform data, along with the selection of the desired algorithm is applied to this function, and the transit times of each of the waveforms is provided.</p>Nickhttp://www.mathworks.com/matlabcentral/fileexchange/authors/197559MATLAB 8.3 (R2014a)MATLABfalsetag:www.mathworks.com,2005:FileInfo/488062014-12-19T14:27:08Z2014-12-19T14:27:08ZA study on the biodynamic models of seated human (6-DOF Model by Muksian and Nash, 1974)body vibrations<p>The lumped-parameter models from literature have been analyzed and validated.</p>Olexander Zhytenkohttp://www.mathworks.com/matlabcentral/fileexchange/authors/216465MATLAB 7.14 (R2012a)falsetag:www.mathworks.com,2005:FileInfo/488052014-12-19T14:11:07Z2014-12-19T14:11:07ZA study on the biodynamic models of seated human (4-DOF Model by Boileau and Rakheja, 1998)Body vibrations<p>The lumped-parameter models from literature have been analyzed and validated.</p>Olexander Zhytenkohttp://www.mathworks.com/matlabcentral/fileexchange/authors/216465MATLAB 7.14 (R2012a)falsetag:www.mathworks.com,2005:FileInfo/488042014-12-19T14:04:38Z2014-12-19T14:04:38ZMean acquisition time in a multi-dwell hybrid or parallel acquisition structure in GNSSMean acquisition time calculation for the acquisition of GNSS signals (GPS, Galileo, Glonass, ...)<p>%The main function is Fct_MeanTacq_hybr_and_parr, which computes the mean acquisition
<br />%time in a multi-dwell hybrid or parallel structure in GNSS.
<br />%It is based on the formulas derived and presented in:
<br />%%Lohan, E.-S. , Lakhzouri, A. , Renfors, M, "Selection of the multiple-dwell hybrid-search strategy for the acqusition
<br />%of Galileo signals in fading channels",
<br />%IEEE International Symposium on Personal, Indoor and Mobile Radio Communications, PIMRC
<br />%Volume 4, 2004, Pages 2352-2356
<br />%The function is called via:
<br />%Tacq=Fct_MeanTacq_hybr_and_parr(Pd, Pfa_H0, Pfa_H1, tau_d, Kpenalty, Nr_states);
<br />%where we have the following input parameters
<br />%
<br />%INPUTS
<br />%Pd = vector of detection probabilities for each dwell =[Pd1,
<br />% Pd2,..PdK]; there are K dwells. For example, for a 2 dwell
<br />% structure with 95% acquisition probability in the first dwell
<br />% and 94% acquisition probability in the second dwell, Pd=[0.95
<br />% 0.94];
<br />% Pfa_H0 = vector of false alarm probabilities under the hypothesis
<br />% that we are in an incorrect window; For example, for a 2 dwell
<br />% structure with 1% false alarm probability in the first dwell
<br />% and 0.5% acquisition probability in the second dwell in the incorrect windows, Pfa_H0=[0.01
<br />% 0.005];
<br />% Pfa_H1 = vector of false alarm probabilities under the hypothesis
<br />% that we are in a correct window (typically, at high
<br />% CNRs, this is zero, i.e: Pfa_H1=[0 0] for a 2-dwell acquisition)
<br />%tau_d = vector of dwell times [in seconds], i.e. the time to take a decision,
<br />% usually equal to the integration times in each dwell. For
<br />% example, for a 2-dwell approach, if we use 2 ms coherent
<br />% integration time and 1 block non-coherent integration in the first dwell and a 4ms coherent
<br />% integration time and 2 blocks non-coherent integration in the
<br />% second dwell , tau_d=[2 8]*1e-3 [seconds];
<br />%Kpenalty = penatlty factor for the last dwell, associated with a
<br />% false alarm [in seconds]. This is a scalar value, some example is
<br />% Kpenalty=1e6;
<br />%Nr_states= the number of windows(states) to cover the whole
<br />% time-frequency uncertainty; if Nr_states==1 => fully parallel;
<br />% otherwise (Nr_states >1), we have hybrid acquisition. For
<br />% example, if we use a window size of 2046 half-chips and 1 frequency bin and we want to cover a
<br />% full uncertainty space of 9 frequency bins and 4098 chips code
<br />% length, Nr_states=9*4=36.
<br />%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<br />%OUTPUT
<br />%Tacq = mean acquisition time in seconds</p>Elena L.http://www.mathworks.com/matlabcentral/fileexchange/authors/537148MATLAB 8.4 (R2014b)MATLABfalsetag:www.mathworks.com,2005:FileInfo/488032014-12-19T13:59:36Z2014-12-19T13:59:36ZA study on the biodynamic models of seated human (4-DOF Model by Wan and Schimmels, 1995)body vibration<p>The lumped-parameter models from literature have been analyzed and validated.</p>Olexander Zhytenkohttp://www.mathworks.com/matlabcentral/fileexchange/authors/216465MATLAB 7.14 (R2012a)falsetag:www.mathworks.com,2005:FileInfo/488022014-12-19T13:47:48Z2014-12-19T13:47:48ZA study on the biodynamic models of seated human (2-DOF Models by Allen, 1978)body vibration under low-frequency excitation in seated posture<p>The lumped-parameter models from literature have been analyzed and validated.</p>Olexander Zhytenkohttp://www.mathworks.com/matlabcentral/fileexchange/authors/216465MATLAB 7.14 (R2012a)false