Matlab
流水终入海
学术民工
展开
-
【MATLAB】MATLAB 2015 自定义colorbar
ax = gca;mycolorbar = colormap(ax);save('mycolorbar', mycolorbar);导入使用ax = gca;load('mycolorbar.mat')colormap(ax, mycolorbar);colorbar原创 2019-06-24 10:37:56 · 984 阅读 · 0 评论 -
【MATLAB】pcolor与等深线画图问题
clearclose allm_proj('Equidistant Cylindrical','long',[115,118],'lat',[20,22])m_coast('patch',[0.6,0.6,0.6],'linewidth',1,'edgecolor','k');set(gca,'fontsize',14)m_grid('xlim',[115,118],'ylim',[...原创 2019-06-24 10:45:10 · 3314 阅读 · 0 评论 -
【MATLAB】matlab小记1
Improfile函数I是图像句柄,获取鼠标滑动的cx,cy,c数据用可以画图,cx和cy是坐标,c是z轴。figureimage(I)[cx,cy,c] = improfilehold onplot(cx,cy,'r')figureplot(cx,c)设置色标范围caxis([-1,1])nan显示为透明h=imagesc(s)...原创 2019-06-24 15:29:39 · 536 阅读 · 0 评论