Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. >> global MAXMEM; MAXMEM=256;
  2.  
  3. surf = SurfStatReadSurf( 'av.obj' );
  4.  
  5. mask = SurfStatMaskCut( surf );
  6.  
  7. maskb = (mask & SurfStatROI([0; -16; -8], 20, surf ) == 0);
  8.  
  9. [subject, RatioLeft, RatioRight, gender, age, scanner]...
  10. =textread('GLIMV123ratio2ALLwomissingwoqcmarker.csv', '%s %s %s %s %f %s');
  11.  
  12. clf; hist(age); xlabel('age')
  13.  
  14. R1 = SurfStatReadData( [RatioLeft] );
  15. R2 = SurfStatReadData( [RatioRight] );
  16. R3 = horzcat(R1, R2);
  17. 752 x 1 files to read, % remaining: 100 90 80 70 60 50 40 30 20 10 0 Done
  18. 752 x 1 files to read, % remaining: 100 90 80 70 60 50 40 30 20 10 0 Done
  19. >> Age = term( age );
  20. Gender = term ( gender );
  21. Scanner = term (scanner );
  22. Subject = term ( subject );
  23. >>
  24. >> slm = SurfStatT( SurfStatLinMod( R3, 1 + Age + Gender + random( Subject ) + I, surf ), Age );
  25. [ pval, peak, clus, clusid ] = SurfStatP( slm, mask );
  26. SurfStatView( pval, surf, 'PVAL LINEAR' );
  27.  
  28. >> slm = SurfStatT( SurfStatLinMod( R3, 1 + Age + Gender + random( Subject ) + I, surf ), Age );
  29. [ pval, peak, clus, clusid ] = SurfStatP( slm, mask );
  30. SurfStatView( pval, surf, 'PVAL LINEAR' );
  31.  
  32. id =
  33.  
  34. 25439
  35.  
  36. >>
  37. clusid( 25439 )
  38.  
  39. ans =
  40.  
  41. 5
  42.  
  43. >> maskROI = clusid == clusid( 25439 );
  44. >> Linearmodelcluster5 = mean( R3(:, maskROI), 2 );
  45.  
  46. >> SurfStatPlot( Age, Linearmodelcluster5, Gender );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement