📄 show.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -