fitscale.m
来自「Matlab工具箱多维小波变换工具箱MDWT.zip」· M 代码 · 共 18 行
M
18 行
function [d]=fitscale(x,n)
%Rescale the value to fit the colormap
if nargin==1, n=255; end;
d=x(:);
mi=min(d);
ma=max(d);
s=n/(ma-mi);
d=(d-mi)*s;
d=reshape(d,size(x));
%
% Part of Multi-dimension Wavelet Toolbox Version 1.0
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail chen_fu@263.net
%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?