createRFsTable.m 538 B

123456789101112
  1. function DataTable = createRFsTable(rfArray, stimParamString)
  2. degPerBar = 2;
  3. relativePosition = degPerBar * (1 : size(rfArray, 2));
  4. dataCell = mat2cell([relativePosition; rfArray], ones(1, size(rfArray, 1) + 1), ones(1, size(rfArray, 2)));
  5. labelColumn = [stimParamString; sprintfc('ROI%d', (1: size(rfArray, 1))')];
  6. labelDataCell = [labelColumn dataCell]';
  7. DataTable = cell2table(labelDataCell(2: end, :), 'VariableNames', labelDataCell(1, :));
  8. end
  9. % function exportRFsTableToExcel(rfArray)
  10. %
  11. % end