Daniel@0: function display(m) Daniel@0: % MATRIX/DISPLAY display of a matrix Daniel@0: disp(' '); Daniel@0: d = get(m,'Data'); Daniel@0: n = get(m,'Name'); Daniel@0: t = get(m,'Title'); Daniel@0: for i = 1:length(d) Daniel@0: for j = 1:length(d{i}) Daniel@0: figure Daniel@0: h = imagesc(d{i}{j}); Daniel@0: set(gca,'YDir','normal') Daniel@0: title(t) Daniel@0: fig = get(0,'CurrentFigure'); Daniel@0: disp(['The ',t,' related to file ',n{i},' is displayed in Figure ',num2str(fig),'.']); Daniel@0: end Daniel@0: end Daniel@0: disp(' '); Daniel@0: drawnow