Albo Return
While evolving code, there is often a need to enrich an existing simple return scheme of a function by extra/optional return values. Using (variable lenght) return tuples often introduces puzzles - and the pychecker yells. In such cases the RICHVALUE recipe offers a transparent method for adding...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): RICHVALUE Download |
This script memoizes, but clears cache when last function call returns.It is suitable for dynamic programming.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Memoization with cache cleared on return Download |
This script creates an iterator which returns N-tuples built from the incoming items from another iterator. It is useful, for example, when you need items two at a time.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Iterator to return items N-at-a-time Download |
Fixes x data so that interp1 doesn't return error:'The values of X should be distinct.'Checks for duplicate values in input 1D data array and returns array where all values are distinct. If duplicates are found, values are separate by small value (eps). useage:x = nonduplicate(x); yi =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): nonduplicate Download |
It is reentrance problems meaning cardiac signal return back to excite again the heart in investigation of reentrance 7.1)free download heart VI12)ckick run and time calcul is about 2mn.3)at end click general scope of heart sinus,atrilal,his and ventricular from up to down.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Reentrance Problems of Heart VI1 simulator simulink investigation 7 Download |
This function uses the auction principle to return the optimal assignment and the dual prices. It performs quite well, and is way faster than the hungarian algorithm as the number of points increases. More details on the auction algorithm can be found on D. Bertsekas homepage...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): AuctionJacobi Download |
an perform a mixed-model ANOVA on simple designs with one between-subjects factor and one within-subjects (repeated-measures) factor and either display a results table or simply return the values within.See comments at top of file for full information.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Mixed (Between/Within Subjects) ANOVA Download |
Return the optimal path given the adjacency/cost sparse matrix and source/destination nodes.Run mexme_dijkstra.m to compile mex-files on your own-plateformRun test_dijkstra.m for the demo
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): dijsktra Download |
Return same information than with Matlab command feature('memstats') but in structure form.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): featurememstats Download |
Example:eomdateAN(2007,0) will return the date of 31.12.2006eomdateAN(2007,-1) will return the date of 30.11.2006eomdateAN(2007,-12) will return the date of 31.12.2005eomdateAN(2007,13) will return the date of 31.01.2008
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): eomdateAN Download |
Simple VaR Calculator provides: - Evaluation of return distribution of single asset or portfolio of assets; - Volatility forecasts using moving average and exponential algorithm;- Value at Risk of single asset or portfolio measurement using parametric and historical simulation.- Historical data...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): riskcalc Download |
The specified intensity range is checked and return 1 if it comes
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): red colour detection Download |
Given a nonnegative integer n, return the nth Lucas number. Return an error message if the argument is not an integer.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Lucas.m Download |
Return a concatenation of multiple colon-intervals.User provides left, step, and right bound.>> mcolon([0 10],[1 2],[2 14])ans = 0 1 2 10 12 14
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (46): Multiple-Colon Download |
The function BINOMIND does not use loops (apart from a redundant check) or division nor indeed factorials to generate the Binomial Coefficients (BCs). It simply constructs the lower-triangular Pascal matrix and does a simply lookup to get the desired BC.BINOMIND is much faster than NCHOOSEK at...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Find and return Binomial Coefficients (BCs) in a matrix up to N Download |
Note that this function do not return EIGEN VECTORS.This function is faster than looping on EIG when eigenvalues must be computed for a large number of matrices. The test shows it can speed up by 10 times
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Multiple eigen-values for 2x2 and 3x3 matrices Download |
It takes parts of incoming vector that above threshold and return cell array of parts.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Threshold detector Download |
Meanwhile ffndgrid only return density or sum of value function ("f") for each bins, in this version can now specify easily (by changing or adding code in correct place) any function you want to apply to "f". Min or max value for each bin is included.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): N-D customized gridding Download |
Nothing flash, just a simple helper function to return the current selection and selectionIndex from the specified listbox or popupmenu.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): GetCurrentValue Download |
function [x,y]=gpos(h_axes)%GPOS Get current position of cusor and return its coordinates in axes with handle h_axes% h_axes - handle of specified axes% [x,y] - cursor coordinates in axes h_aexs%% -------------------------------------------------------------------------% Note:% 1. This function...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (52): Trace the Position of Cursor without Click Download |