N3d100
MAJLE (Weak) Majorization checkS = MAJLE(X,Y) checks if the real part of X is (weakly) majorized by the real part of Y, where X and Y must be numeric (full or sparse) arrays. It returns S=0, if there is no weak majorization of X by Y, S=1, if there is a weak majorization of X by Y, or S=2, if...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): majorization check Download |
The function computes parameters a, b, and c of the weighted orthogonal least squares fit of line ax+by+c=0 to a set of 2D points with coordinates given by x and y and weights w.n=100;x=1:n;y=2.5*x + (5+300./x).*randn(1,n);plot(x,y,'.k')hold onw=1:n;[a b c] = wols(x,y,w);plot([0,n],[-c/b,-c/b -...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): Weighted Orthogonal Least Squares Download |
n=rand_gen(x,pmf,N)esample :x=[1,3,4] : set of variablespmf=[1/3,1/3,1/3] : [rpbability of each variable of xN=100 : number of samples of the random signal
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Generation of random number given the pmf Download |