Forloop
Approximate Entropy (ApEn) is a popular tool in analysing the complexity of time series data especially in clinical research.This function is a very simple and efficient implementation of ApEn, based on vectorization concept that improves speed tremendously over for-loop implementation.It also...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Fast Approximate Entropy Download |
it's useful to see how the mean and the standard deviation change when you use more samples to calculate it.The Array can contain NaN's but it's slower than cumstat (File ID: #26899) because it contain a for-loop
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): cumulative statistic with NaN's Download |
Solve multiple (2x2) or (3x3) linear systems:A(:,:,k)*X(:,:,k) = B(:,:,k) for k=1,2,...,NThe method used here is basic cofactor/determinant.DISADVANTAGE: This method may be less accurate than Matlab backslash (using in for-loop) when the matrices are ill-conditioned.ADVANTAGE: for a large number...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Small size linear solver Download |
Up to now, to find the first non-zero element of a matrix along a column (for example) user might:1. Use for-loop with FIND command for j=1:size(A,2) ... = find(A(:,j), 1, 'first'); end 2. Use other vectorized methods, often time not very straight-forwards (MAX, LOGICAL, SPARSE, etc...). This...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Vectorized FIND with 'FIRST' option Download |
A 2D TM wave containing the xy-plane polarized magnetic field having components Hy and Hx and z-polarized electric field Ez. The fields are updated at every timestep, in a unitless space, where all physical parameters of free space are normalized to 1. The update is done using standard update...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): Program19 2D FDTD Unitless Open Boundary Suboptimal Courant factor Download |