Changeset 92


Ignore:
Timestamp:
Sep 10, 2009, 10:25:37 AM (10 years ago)
Author:
tjniskan
Message:
  • Fixed a small bug in the roi averages plugin.

M plugins/fmri_plugins/roi_averages.m
M aedes_revision.m

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aedes_revision.m

    r91 r92  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - SVN Hook -
     95% - Svn Hook -
  • plugins/fmri_plugins/roi_averages.m

    r91 r92  
    4747nScans = size(DATA{1}.FTDATA,4);
    4848fh=figure;
    49 if length(ROI)<=3
    50   nRows = length(ROI);
     49if length(RoiInds)<=3
     50  nRows = length(RoiInds);
    5151  nCols=1;
    52 elseif length(ROI)==4
     52elseif length(RoiInds)==4
    5353  nRows = 2;
    5454  nCols=2;
    55 elseif length(ROI)<10
     55elseif length(RoiInds)<10
    5656  nRows = 3;
    57   nCols = ceil(length(ROI)/nRows);
     57  nCols = ceil(length(RoiInds)/nRows);
    5858else
    5959  nRows = 4;
    60   nCols = ceil(length(ROI)/nRows);
     60  nCols = ceil(length(RoiInds)/nRows);
    6161end
    6262for kk=RoiInds
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008