Docs @ Psychtoolbox Wiki : AltSize

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

AltSize

PsychtoolboxPsychOneliners

varargout = AltSize(in,arg)

extends size()'s functionality to support querying the size of multiple
dimensions of a variable in one call.
requested dimensions can be repeated and may (of course) be singleton
number of output arguments must match number of requested dimension sizes
or be one, in which case a vector is returned

example:
in = ones(1,2,3,4,5);
[d e f g h i] = AltSize(in,[1 3 2 8 4 2])
d =
1
e =
3
f =
2
g =
1
h =
4
i =
2




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


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