No BSD License  

Highlights from
NANSUBSREF

2.0

2.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 302 Bytes File ID: #20357

NANSUBSREF

by Miguel

 

19 Jun 2008 (Updated 23 Jun 2008)

NANSUBSREF Subscripted reference, ignoring NaNs.

| Watch this File

File Information
Description

NANSUBSREF Subscripted reference, ignoring NaNs.
   B=NANSUBSREF(A,I) is an array formed from the elements of A specified
   by the subscript vector I. The resulting array is the same size as I.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Jun 2008 Jos x@y.z

Given the poor help text (which does include a H1 line), I had no clue what this function does, so I just tried a couple of things. Both "nansubsref(NaN,1)" and "nansubsref (1,nan)" return a NaN, so these are not ignored at all.

But ahah, when you look at the code (and end-users should not!), it becomes clear, but also that it is all very trivial ...

I want to rate this a 1-star, but I give a bonus star for the H1 line

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
subsref Miguel 22 Oct 2008 10:06:39
nan Miguel 22 Oct 2008 10:06:39
subscripted Miguel 22 Oct 2008 10:06:39
ignoring Miguel 22 Oct 2008 10:06:39
vector Miguel 22 Oct 2008 10:06:39

Contact us at files@mathworks.com