nancumsum Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: nancumsum.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Brett Shoelson (View more)

nancumsum script description:



nancumsum is a Matlab script for Mathematics scripts design by Brett Shoelson. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
nancumsum - Compute the cumulative sum of matrices, specifying the treatment of NaNs.

Publisher review:
nancumsum - Compute the cumulative sum of matrices, specifying the treatment of NaNs. Cumulative sum of a matrix, with user-specified treatment of NaNs.Computes the cumulative sum of matrix A along dimension DIM, allowing the user to replace NaNs with zeros, to maintain NaNs as placeholders, or, when A is a vector, to discard NaNs. USAGE: B = nancumsum(A, DIM, NMODE)ARGUMENTS:A: Input matrix.B: Output cumulative sum matrix, treating NaNs as determined by nmode.Note that if B is a vector (1xn or nx1), A may or may not be the same size as B, depending on the method selected for representing NaNs.DIM: B = nancumsum(A, DIM) returns the nan-cumulative sum of the elementsalong the dimension of A specified by scalar DIM. For example,nancumsum(A,1) works down the columns, nancumsum(A,2) works across the rows. If DIM is not specified, it defaults to the first non-singleton dimension of A. NMODE: specifies how NaNs should be treated. Acceptable values are:1: REPLACE NaNs with zeros (default).2: MAINTAIN NaNs as position holders in B.3: DISCARD NaNs.Note: this is legal only for VECTOR values of A.EXAMPLES:1) a=[NaN,2:5];nancumsum(a)ans =0 2 5 9 14nancumsum(a,[],2)ans =NaN 2 5 9 14nancumsum(a,[],3)ans =2 5 9 142) a = magic(3); a(4)=NaN;b=nancumsum(a,2)b =8 8 143 8 154 13 15b=nancumsum(a,2,2)b =8 NaN 63 5 74 9 2See also: cumsum, nansum, nancumprod, nanmean, nanmedian, ... (nancumprod is available from the FEX. Other nan* may require Toolboxes)
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

Samsung launched the Premium Music Hub

Samsung launched the Premium Music Hub

Samsung finally gives consumers multiple audio streaming countries promised a while. Premium Music Hub allows users access to over 19 million songs, along with other useful functions.

Posted on: 30 May 2012 13:02 by A. Brown

This could be the first photos of iPhone 5

This could be the first photos of iPhone 5

IPhone\'s case came online in a few pictures that confirm rumors of a larger screen. This could be the first photos of the next iPhone, but nothing is really safe to Apple announcement.

Posted on: 30 May 2012 12:58 by A. Brown

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

SPREAD THE WORD

User Rating

nancumsum
Rating: 0.0 out of 5
Based on 0 ratings. 0 user reviews.

  • Currently 0.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5