You are facing this issue because you are not setting the values of the parameteres for the new IFD created using writeDirectory function. You will have to set tag for each directories.
If you want to keep the same parameter for every directory, you can update your code as below:
% imposta le informazioni nella nuova immagine Tiff
tagstruct.Photometric= 1;
tagstruct.Compression= 1; % 1 = nessuna compressione, 8 = compressione Deflate
tagstruct.BitsPerSample= info(1).BitsPerSample;
tagstruct.SamplesPerPixel= info(1).SamplesPerPixel;
tagstruct.SampleFormat= Tiff.SampleFormat.UInt;
tagstruct.ImageLength= info(1).Height;
tagstruct.ImageWidth= info(1).Width;
tagstruct.PlanarConfiguration= Tiff.PlanarConfiguration.Chunky;
for j = 1:numel(info)
%tagstruct(info(j)); % commenta questa riga per testare se il problema è qui
t.writeDirectory();
t.setTag(tagstruct)
t.write(newStack(:,:,j));
end
t.close();