⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectcontourlevels.m

📁 MATLAB源文件
💻 M
字号:
function levels = selectcontourlevels(data, min, max)% L = SELECTCONTOURLEVELS(DATA) - select contour levels for DATA.%              Returns a vector of levels.% L = SELECTCONTOURLEVELS(DATA, min, max) - select contour levels for DATA.%              MINinimum and MAXimum possible contour levels%              specified.  % Copyright 2000, 2001, 2002, 2003, 2004, 2005 The MathWorks Inc  dlg_title = 'Sliceomatic contour select';    if nargin == 1    min = min(min(data));    max = max(max(data));  end  levels = [];    prompt = ['Enter contour values over '...            num2str(min) ' to '...            num2str(max) ':'];  answer = inputdlg(prompt,dlg_title);  if isempty(answer)~=1 & isequal(answer{1},'')~=1    levels = str2num(answer{1});    if isempty(levels)==1      warndlg('Contour values must be numeric: data not accepted.');    end  else    warndlg('Empty value: data not accepted.');  end  % End

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -