Skip to content

Commit 2ce5b6d

Browse files
committed
Merge branch 'plot' of https://github.com/cpp-lln-lab/CPP_ROI into plot
2 parents 9dc8598 + 5ff89c8 commit 2ce5b6d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test_plotRoi.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@ function test_test_plotDataInRoi_many_rois_and_data()
4040

4141
end
4242

43+
function test_test_plotDataInRoi_many_rois_as_cols_and_data()
44+
45+
mask1 = createDummyMask(1);
46+
mask2 = createDummyMask(2);
47+
mask3 = createDummyMask(3);
48+
mask4 = createDummyMask(4);
49+
data1 = createDummyData(1);
50+
data2 = createDummyData(2);
51+
data3 = createDummyData(3);
52+
data4 = createDummyData(4);
53+
54+
mask = cellstr(cat(1, mask1, mask2, mask3, mask4));
55+
data = cellstr(cat(1, data1, data2, data3, data4));
56+
57+
plotDataInRoi(data, mask, 'roiAs', 'cols');
58+
59+
delete *.nii;
60+
61+
end
62+
4363
function M = mat()
4464
M = ...
4565
[-3 0 0 84; ...

0 commit comments

Comments
 (0)