Skip to content

Instantly share code, notes, and snippets.

@schluppeck
Created July 9, 2019 11:58
Show Gist options
  • Select an option

  • Save schluppeck/6f9f82419a87e2ddf65cec69e5da9691 to your computer and use it in GitHub Desktop.

Select an option

Save schluppeck/6f9f82419a87e2ddf65cec69e5da9691 to your computer and use it in GitHub Desktop.
get pRF stim images from mat file
% getting pRFStimImage from multiple files
%
% ds 2019-07-09
% task: get stimimage info out of mat file
% go to Etc folder of mrLoadRet directory
cd('Etc')
% find mat files that fit the bill (only retinotopy type)
theFiles = dir('19*.mat')
% in this case #7 was something eelse
theFiles = theFiles(1:6);
% make a cell array of all file names
theFileNames = { theFiles.name };
% pass to mrLoadRet function (make sure MGL is installed, too)
p = pRFGetStimImageFromStimfile( theFileNames )
% get a cell array containing (in this case 6) stimImage structs
% continue from here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment