Code covered by the BSD License  

Highlights from
ReadGetDICOM

image thumbnail
from ReadGetDICOM by GAMAL ALKIRSHI
The function of this program is read the DICOM images and save it in Single MAT file.

NPath=SetNewPath(CDr,N,T)
function NPath=SetNewPath(CDr,N,T) %#ok<INUSD>

NPath=sprintf('%s',cell2mat(N(1)),'\');
if length(N)>1
    for n=2:length(N)
        NPath1=sprintf('%s',cell2mat(N(n)),'\');
        NPath=sprintf('%s',NPath,NPath1);
    end
end
if nargin>2
    NPath=sprintf('%s',CDr,'\',NPath);
end
end

Contact us