MATLAB: Saving MRI data from workspace

image analysisimage formatmr data

Hello, I can load 3D MRI data ((.IMG/.hdr format) using 'Y= analyze75read('data')'. After computation in matlab , Now I want to save the data 'data' (preferred format is .img/.hdr, or .raw/.mhd) in hard drive. How can I do that? Any code?
Thanks in advance for help.
Related Question