subsref.m

来自「基于PSAT 软件的多目标最优潮流计算用于中小型电力系统的分析和管理」· M 代码 · 共 30 行

M
30
字号
function b = subsref(a,index)switch index(1).type case '.'  switch index(1).subs   case 'con'    if length(index) == 2      b = a.con(index(2).subs{:});    else      b = a.con;    end   case 'bus'    if length(index) == 2      b = a.bus(index(2).subs{:});    else      b = a.bus;    end   case 'n'    b = a.n;   case 'store'    b = a.store;   case 'pq'    b = a.pq;   case 'newpq'    b = a.newpq;   case 'qg'    b = a.qg;  endend

⌨️ 快捷键说明

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