I tried what you sugested and same error.
Actually I manually created the atlas using code in labeling2atlas function only selecting the labels I´m interested in: left and right hippocampus. The niftis generated look normal when I display them with spm. Then I tried to visualize the atlas in lead dbs and the same error after a while:
Error using ea_smoothpatch_inversedistance_double
Requested 8774618295792×1 (65376.0GB) array exceeds maximum array size preference. Creation of arrays greater than
this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for
Is it possible to obtain the atlas folder to copy it directly in the atlases folder ready to load it in dbs?