you're right, I've tried to open the .nii file with MRIcro and an error about expected header dimensions appears. The wrog step is probably when i try to export .roi to .nii, but actually there's no other way to do it with MRIcro. I'll try to find some other way!
Thanks a lot for your help and thanks again for your nifti tool!
please help me, I have this message when I try use the analog input in simulink
The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'arduinouno_servocontrol_potentiometer/Arduino IO Setup' must be located in the current working directory, the MATLAB S-function directory 'E:\Arduino\arduinoIO\simulink', or the directory 'E:\Arduino\arduinoIO\simulink\tlc_c'