nii files follow the NIfTI image format. You can use the niftiread function to read these files. MATLAB also offers other functions like niftiwrite and niftiinfo. All the linked doc pages have examples that should help you get started. You can use try using volshow or the volumeViewer app to view your data.
Here are two articles that talk about viewing/displaying MRI data (3D volume):