image thumbnail
from ROIRool by hey dude
Draw Line Profiles and 2D ROI's in 2D images.

text=Struct2Text(struct)
function text=Struct2Text(struct)
values=struct2cell(struct);
fnames=fieldnames(struct);
tab=0;
for i=1:length(fnames)
    if length(fnames{i})+10>tab;tab=length(fnames{i})+10;end
end
for i=1:length(fnames)
    text{i}=[fnames{i} blanks(tab-length(fnames{i})) num2str(values{i})];
end


end

Contact us