Ayn Rand Rational Egoism
A given polynomial p(x) is transformed into a rational function r(x). The poles and residues of the derived rational function are found to be equivalent to the roots and multiplicities of the original polynomial. p(x) = Given polynomial = PROD[k=1:K]{(x - z_k)^m_k} d(x) = (d/dx)p(x) g(x) =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Multiple-root polynomial solved by partial fraction expansion Download |
event1=rand(100,1)*1000;%for neuroscientists, this is the timestamp of the node;event1=sort(event1);event2=[event1+10+rand(100,1)*2;event1+10+rand(100,1)*4; event1+10+rand(100,1)*4; event1+100+rand(100,1)*10]; % for neuroscientists, this is your spikes :)[rst,nodewndw]=...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): Raster and PETH Simple Version Download |
Same functionality as the MATLAB rref function, but quicker.>> mex_rref_demo A = rand(200); R1 = rref(A);Elapsed time is 1.435837 seconds. R2 = mex_rref(A);Elapsed time is 0.012729 seconds. max(max(abs(R1 - R2))): 0Speed-up factor: 113
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): mex_rref Download |
With this program you can smooth your data automatically only by selecting the area to be smoothed with 2 clicks. Then INTERP1 is used to smooth. The operation is repeated until you press ENTER.Many other options are available. Like the use of BEZIER curves. Just type>> help click2smoothOr to get...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): lick2smooth.m (Sep 2009) Download |
It calculates the Spearman rank correlation coefficient from 2 or more data sets, and the associated t-test and p-values. The code is adapted with major changes from the Numerical Recipes book (http://www.nr.com/)Example:>> x = [1 2 3 3 3]';>> y = [1 2 2 4 3; rand(1,5)]';>> [r,t,p] = spear(x,y)>>...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Spearman Rank Correlation Download |
It is training for students Constant input signal to sinusoidal relaxation oscillator VI1 with simulink.Student can get in variation constant input signal and set curve input /output frequency.Students can change rational coefficients to have a large linearity near a point.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Training Constant Input Of Sinusoidal Relaxation Oscillator VI1 With Simulink Download |
Solution of Fractional Optimal Control Problems using Rational Approximation[1] C. Tricaud and Y.Q. Chen: Solving Fractional Order Optimal Control Problems in RIOTS_95 - A General-Purpose Optimal Control Problem Solver, Proceedings of the 3rd IFAC Workshop on Fractional Differentiation and its...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Solution of Fractional Optimal Control Problems Download |
PLOTSTATS(XDATA,YDATA) generate a nice figure for the statistical visualisation of datasets. YDATA is a cell array of vectors, each vector being a group of samples to test. XDATA is a cell array of the same size of YDATA, each element being a single number representing the abscissa of the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): plotstats Download |
Inversion of Laplace transforms is a very important procedure used in solution of complex linear systems.The function f(t)=INVLAP(F(s)) offers a simple, effective and reasonably accurate way to achieve the result. It is based on the paper:J. Valsa and L. Brancik: Approximate Formulae for...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (47): Numerical Inversion of Laplace Transforms in Matlab Download |
It is the heart VI1 model with simulink new block function library coding the global functionment of the 3 parts of heart,the sinus,the atrial ,the his canal,and the ventricular.There are inputs for electrical stimulation of the 3 parts.The programmable cardiac parameters are rational...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): HEARTVI1 WITH SIMULINK NEW BLOCK LIBRARY Download |
TOSAVEDWORKSPACE Saves the workspace to a structureThis trivial function saves all of the workspace variables to a structure. The intent of this script is to record the workspace variables before performing an operation on them, so as to keep them available after the operation for comparison....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): ToSavedWorkspace Download |
Functionally the same xlswrite.m (by Scott Hirsch), the only difference is in the implementation.XLSWriteMex is implemented in C++ and compiled into a MATLAB MEX dll. I did this because 'xlswrite.m' does not compile using the MATLAB compiler, so any MATLAB program using 'xlswrite.m' cannot be...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (39): XLSWriteMex Download |
TICK2BAR[T,H,L,O,C,V]=Tick2Bar(t,p,v,g)Divides a time series into periods of g days(may be less than one day).It is useful in conjunction with HIGHLOW [T,H,L,O,C,V]=Tick2Bar(t,p,v,g); highlow(H(:),L(:),C(:),O(:),'k',T(:));It returns:T date/time of the periodH high of the periodL low of the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Tick2Bar Download |
Given x from 0 to 1, this program computes ?(x), where ? is the Minkowski question mark function, defined by?(0)=0, ?(1)=1, and ?((a+b)/(c+d))=(?(a/c) + ?(b/d))/2, where a/b and c/d are consecutive terms in the Farey sequence. ?(x) is continuous but nowhere differentiable. ?(x) is rational...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): MinkowskiQM.m Download |
LEPSTEST [lepss] = lepstest(cumclimate,xo,xf,refprob) This code computes LEPS score LEPS: Linear Error Probability Space (Ward and Folland, 1991) lepss - Linear Error Probability Space Score xo - measured values: column vector or scalar xf - forecasted values: column vector or scalar...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): LEPSTEST Download |
H = TRIPLESTEST(X) performs the non-parametric triples test for symmetry (skewness) of the null hypothesis that the data in X comes from a symmetrical distribution with an unknown median. The test involves the examination of subsets of three variables from X (triples) to determine the likelihood...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): TRIPLESTEST Download |
function mHist = hist2d ([vY, vX], vYEdge, vXEdge)2 Dimensional HistogramCounts number of points in the bins defined by vYEdge, vXEdge.size(vX) == size(vY) == [n,1]size(mHist) == [length(vYEdge) -1, length(vXEdge) -1] EXAMPLEmYX = rand(100,2);vXEdge = linspace(0,1,10);vYEdge =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): 2D Histogram Matrix Download |
Measure percentage of Accuracy and the Rand index of clustering resultsThe number of class must equal to the number clusterOutput Acc = Accuracy of clustering results rand_index = Rand's Index, measure an agreement of the clustering results match = 2xk matrix which are the best match of the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Clustering results measurement Download |
% Add 2 big INTERGER a b, e.g with 100 digits% algorithms will add each group of nbit digits% of a and b. nbit(default)=6% S = add(a,b), return S = a+b%-----------------------% Example% na = 3+ round(10*rand);% nb =5+ round(10*rand);% a = round(10^na*rand)% b = round(10^nb*rand)% s =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Adding 2 big interger, e.g 100 digits Download |
This function shuffles an adjacency matrix in a way that preserves the structure of the network it represents. It only shuffles the order of the nodes; in other words, if the fourth column swaps places with the fifth column, then the fourth row also swaps places with the fifth row. Every entry on...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): QAP Rand Matrix Swap Download |