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

« back to all changes in this revision

Viewing changes to Psychtoolbox/Psychometric/ComputeWeibYN.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:
26
26
[nInputs, nCol] = size(x);
27
27
 
28
28
% Case:  nAlpha == nBeta == 1 ~= nCol
29
 
if (nAlpha == nBeta & nAlpha == 1)
 
29
if (nAlpha == nBeta && nAlpha == 1)
30
30
  % disp('Single parameter case');
31
31
  z = (x./alpha).^beta;
32
32
  pyes = ( 1.0 - exp( - z ) );
33
33
 
34
34
% Case:  nAlpha == nBeta == nCol
35
 
elseif (nAlpha == nBeta & nAlpha == nCol)
 
35
elseif (nAlpha == nBeta && nAlpha == nCol)
36
36
  % disp('Vector parameter case');
37
37
  for (i=1:nCol)
38
38
    z = (x(:,i)./alpha(i)).^beta(i);