%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Project : AiPT % Module : WinCamD_DisplayTiff % Description : Display .tiff file generated by WinCamD. % References : % %Version|Date |author|Description %-------|--------|------|------------------------------------------------------- %01.01 |20230209|L,YM |Initial version %-------|--------|------|------------------------------------------------------- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clc; clear; %close all; tic; %% Coefficient set load('SimProfile.mat') centre = [980,980];%x,y span = [200 ,200 ];%x,y SimProfile = SimProfile(centre(2)-span(2) : centre(2)+span(2)-1, ... centre(1)-span(1) : centre(1)+span(1)-1); SimProfile = SimProfile ./ max(SimProfile,[],'all'); SimProfile = max(SimProfile,0.20); %dynamic range calibration %% Fig settings Fig1 = figure; Fig1.Units = 'inches'; Fig1.InnerPosition = [1, 1, 2, 2]; ax1 = axes; ax1.InnerPosition = [0 0 1 1];%position with labels %% plot pcolor(SimProfile)%2D figure. axis equal axis off shading interp% faceted% interp% toc;