~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/moglDrawDots3D.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
nvc = size(xyz, 1);
90
90
nrdots = size(xyz, 2);
91
91
 
92
 
if ~ismember(nvc, [3,4]) || nrdots < 1
 
92
if ~(nvc == 3 || nvc == 4) || nrdots < 1
93
93
    error('"xyz" argument must have 3 or 4 rows for x,y,z or x,y,z,w components and at least 1 column for at least one dot to draw!');
94
94
end
95
95
 
114
114
 
115
115
    ncolors = size(dotcolor, 2);
116
116
    ncolcomps = size(dotcolor, 1);
117
 
    if  ~ismember(ncolcomps, [3,4]) || (ncolors~=1 && ncolors~=nrdots)
 
117
    if  ~(ncolcomps == 3 || ncolcomps == 4) || (ncolors~=1 && ncolors~=nrdots)
118
118
        error('"dotcolor" must be a matrix with 3 or 4 rows and at least 1 column, or as many columns as dots to draw!');
119
119
    end
120
120
else