I have a .dcm file containing multiple frames. I use: for i=1 : frameNum f = dicomread(path2dcm, 'frames', i); % downsample f end to downsample each frame. But how do I write all the downsampled frames to a single .dcm file? I have looked at: dicomwrite but it does not seem to support this operation, any ideas?