Skip to content

Commit

Permalink
add isnr options
Browse files Browse the repository at this point in the history
  • Loading branch information
ppxma7 committed Nov 21, 2023
1 parent 8ce3e08 commit a2ee187
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
12 changes: 12 additions & 0 deletions fMRI_report_app/extras/factork.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function[gridFactors]=factork(X,M)
% factork 1-by-2 factorisation based on a number of divisors
%
% factork(X,M) returns a 1-by-2 matrix whose elements are factors of X, and
% M is the divisor
%
% See also factor
%
% Michael Asghar - November 2023
F = X./M;
gridFactors = [M F];
end
9 changes: 6 additions & 3 deletions fMRI_report_app/stability_app.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@
ypatch = ypos+patchsize(2);


tiles= 9; % for tiles
theRound = round(nS./tiles);
montage=10; % for tiles
theRound = round(nS./montage);
sliceVec = 1:theRound:nS;
tiles = length(sliceVec);
grid = factor(length(sliceVec));

grid = factork(length(sliceVec),3);

%grid = factor(length(sliceVec));
mylims = [0 2];
% BROKEN
thisSlice = round(size(cleaned_data,3).*(2./3));
Expand Down

0 comments on commit a2ee187

Please sign in to comment.