som_label - SOM Toolbox Online documentation

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
SOM Toolbox Online documentation http://www.cis.hut.fi/projects/somtoolbox/ som_label Purpose Add (or remove) labels to (from) map and data structs. Syntax sTo = som_label(sTo, 'clear', inds) sTo = som_label(sTo, 'prune', inds) sTo = som_label(sTo, 'add', inds, labels) sTo = som_label(sTo, 'replace', inds, labels) Description This function can be used to give and remove labels in map and data structs. Of course the same operation could be done by hand, but this function offers an alternative and hopefully slightly user-friendlier way to do it. Required input arguments sTo (struct) data or map struct to which the labels are put mode (string) The mode of operation. 'add' : adds the given labels 'clear' : removes labels 'replace' : replaces current labels with given labels; basically same as 'clear' followed by 'add' 'prune' : removes empty labels ('') from between non-empty labels, e.g. if the labels of a vector were {'A','','','B','','C'} they'd become {'A','B','C'}. Some empty labels may be left at the end of the list. inds
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/23/2010 for the course CS 245 taught by Professor Dunno during the Spring '10 term at Aarhus Universitet.

Page1 / 3

som_label - SOM Toolbox Online documentation

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online