block.m

来自「电力系统分析计算程序」· M 代码 · 共 12 行

M
12
字号
function [enables,prompts] = block(a,object,values,enables,prompts)type = str2num(values{1});switch type case 1, enables([2 5 6 7 8 9 10]) = {'off','on', 'off','off','off','off','off'}; case 2, enables([2 5 6 7 8 9 10]) = {'on' ,'off','on', 'off','off','off','off'}; case 3, enables([2 5 6 7 8 9 10]) = {'on' ,'off','on', 'off','off','off','off'}; case 4, enables([2 5 6 7 8 9 10]) = {'on' ,'off','on', 'on', 'on', 'on' ,'on'}; case 5, enables([2 5 6 7 8 9 10]) = {'on' ,'off','on', 'on', 'on', 'on' ,'on'};end

⌨️ 快捷键说明

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