Description
xASL_adm_GetPopulationSessions was nicely written, but the check if the number of sessions differs between subjects is not working properly. It gave me a warning when I had two sessions. I did some code improvement (see first commit), and @MDijsselhof up to you to explain to me how this should work. My example was with a single subject, with two sessions, where CountSessionNumbers == [1 1] and CompareSessions = [2 2]. nSessions == 2, and NewList was a 2x1 cell array.