|
374 | 374 | if all(ismember(lower(groupBy), {'contrast'})) |
375 | 375 |
|
376 | 376 | result.name = name; |
| 377 | + result.contrastNb = 1; |
377 | 378 | result.dir = getRFXdir(opt, result.nodeName, name); |
378 | 379 |
|
379 | 380 | [matlabbatch, results] = appendToBatch(matlabbatch, opt, results, result); |
|
389 | 390 |
|
390 | 391 | thisGroup = availableGroups{iGroup}; |
391 | 392 | result.name = [thisGroup ' - ' name]; |
| 393 | + result.contrastNb = 1; |
392 | 394 | result.dir = getRFXdir(opt, result.nodeName, name, thisGroup); |
393 | 395 |
|
394 | 396 | [matlabbatch, results] = appendToBatch(matlabbatch, opt, results, result); |
|
400 | 402 | case 'two_sample_t_test' |
401 | 403 |
|
402 | 404 | thisContrast = opt.model.bm.get_contrasts('Name', result.nodeName); |
403 | | - result.name = [thisContrast{1}.Name ' - ' name]; |
| 405 | + |
404 | 406 | result.dir = getRFXdir(opt, result.nodeName, name); |
405 | 407 |
|
406 | | - [matlabbatch, results] = appendToBatch(matlabbatch, opt, results, result); |
| 408 | + for iCon = 1:numel(thisContrast) |
| 409 | + result.name = [thisContrast{iCon}.Name ' - ' name]; |
| 410 | + result.contrastNb = iCon; |
| 411 | + [matlabbatch, results] = appendToBatch(matlabbatch, opt, results, result); |
| 412 | + end |
407 | 413 |
|
408 | 414 | otherwise |
409 | 415 | msg = sprintf('Node %s has has model type I cannot handle.\n', result.nodeName); |
|
0 commit comments