Docs @ Psychtoolbox Wiki : deemptify

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

DeEmptify

PsychtoolboxPsychOneliners

in = DeEmptify(in,column)
deletes empty cells or rows from cellarray:

- if only IN is specified, IN has to be a vector. IN will be returned
with all empty cells deleted
- if IN is a matrix, COLUMN must be specified. Rows are only
deleted from IN when an empty cell is encountered in a column
specified in COLUMN. COLUMN can be a vector

Example:
DeEmptify({'','r','','re'})
ans =
'r' 're'

a = {'p' 'r' ''; ...
'' 're' 'r'}

DeEmptify(a,3)
ans =
'' 're' 'r'

DeEmptify(a,1)
ans =
'p' 'r' ''

DeEmptify(a,1) or DeEmptify(a,[1 3])
ans =
Empty cell array: 0-by-3




Path   Retrieve current version of DeEmptify.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/DeEmptify.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0727 seconds