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

📄 subsref.m

📁 matlab实用教程
💻 M
字号:
function b = subsref(a,index)
%SUBSREF Define field name indexing for asset objects
switch index.type
case '()'
   switch index.subs{:}
   case 1
      b = a.descriptor;
   case 2
      b = a.date;
   case 3
      b = a.currentValue;
   otherwise
      error('Index out of range')
   end
case '.'
   switch index.subs
   case 'descriptor'
      b = a.descriptor;
   case 'date'
      b = a.date;
   case 'currentValue'
      b = a.currentValue;
   otherwise
      error('Invalid field name')
   end
case '{}'
   error('Cell array indexing not supported by asset objects')
end

⌨️ 快捷键说明

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