fitrange.m
来自「hi i have a huge collection are you int」· M 代码 · 共 14 行
M
14 行
function y = fitrange(x, low, high)% Y = fitrange(X,LOW,HIGH) linearly scale X so that its values fall in the% fitrange [LOW,HIGH]% Copyright (C) 1993 James Ashton, Australian National University. You can% do what you like with this file as long as this notice stays with it.xmin = min(min(x));xmax = max(max(x));y = low + (x - xmin) * (high - low) / (xmax - xmin);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?