Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

plotMRI.m 536 B

1234567891011121314151617181920212223
  1. function plotMRI(dataset,mask,cmp)
  2. [~,~,x3] = size(dataset);
  3. sz1 = 4;
  4. sz2 = ceil(x3/sz1);
  5. figure('units','normalized','outerposition',[0 0 1 1])
  6. for sz = 1:x3
  7. subplot(sz1,sz2,sz)
  8. imagesc(dataset(:,:,sz));
  9. if exist('mask','var')
  10. hold on
  11. visboundaries(mask(:,:,sz),'LineWidth',0.5)
  12. end
  13. yticklabels('');
  14. xticklabels('');
  15. end
  16. if exist('cmp','var')
  17. colormap(cmp)
  18. else
  19. colormap("gray")
  20. end
  21. end