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!
every time i run code on simulink(for arduino duemilanove) following error msg will apper
The corresponding 'msfun_arduino_analogread.tlc' file for the MATLAB S-function 'msfun_arduino_analogread' in block 'test1/Arduino Analog Read' must be located in the current working directory, the MATLAB S-function directory '/usr/local/MATLAB/R2011a/bin/ArduinoIO/ArduinoIO/simulink', or the directory '/usr/local/MATLAB/R2011a/bin/ArduinoIO/ArduinoIO/simulink/tlc_c'
please help me