show.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 31 行
M
31 行
% function myhandle = show(matrix,myTitle,clmap)%% Display a matrix as a heat map.%% clmap should be a string, for eg. 'hot(15)'%% if no clmap is given, then defaults to hot(15)%% if the clmap given is the empty string, then it% will not set a new colourmap at all, but will use% the current onefunction myhandle = show(matrix,myTitle,colmap)if 0%~(exist('colmap')==1) colmap='hot(15)'; endmyhandle= image(matrix,'CDataMapping','scaled'); xlabel(''); if exist('colmap')==1 && ~isempty(colmap) eval(['colormap(' colmap ');']); %colormap(colmap);end%colorbar;if (exist('myTitle')) title(myTitle);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?