interpolating an axis to get equidistant bins
2 views (last 30 days)
Show older comments
I want to plot a matrix using pcolor. My code looks like this fh = load('horizontal_scan_energy.dat');
y = fh(:,1);
x = (-1.5:0.15:+1.5); %imagesc(x,y1,fh) mycolors = [1 0 0; 1 1 0; 0 0 1]; colormap(cool(10));
%colorbar(); colormap jet; pcolor(x,y,fh); set(gca,'fontsize',20) caxis([min(min(abs(fh)))*0.01,max(max(fh))/1]) shading flat title('Delay scan','FontWeight','bold','FontSize',20); xlabel('Time(ps)'); ylabel('Kinetic Energy(eV)');
however the y axis does not has equidistant bins. I want to interpolate the axis to get equidistant bins but I do not know how. Any help is very appreciated.
0 Comments
Answers (0)
See Also
Categories
Find more on Colormaps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!