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

📄 block.m

📁 电力系统分析计算程序
💻 M
字号:
function [enables,prompts] = block(a,object,values,enables,prompts)display1 = ['plot([1 0.8],[0.5 0.5],[0 0.2],[0.5 0.5],', ...            '[0.8 0.8 0.2 0.2 0.8],[0 1 1 0 0]), ' ...            'color(''green''), ', ...            'plot([0.1 0.3 0.7 0.9],[-0.4 -0.4 1.4 1.4])'];display2 = ['plot([-1.6 -1.8 -1.8],[0.5 0.5 4],', ...            '[0.2 0.2],[0.5 4],[-0.9 -0.9],[3 5],', ...            '[0 0.2],[0.5 0.5],[-0.65 -0.85],[0.5 0.5],' ...            '[-1.8 -0.9],[4 4],[0.2 -0.8],[4 4],', ...            '[0.2 0.4],[1.9 1.9],[-1.8 -2],[1.9 1.9]), ', ...            'plot(-0.7+0.1*xc,4+yc,', ...            '-1.15+0.175+0.125*yi,0.5+0.5*xi,', ...            '-1.15-0.325+0.125*yi,0.5+0.5*xi,', ...            '-1.15-0.075+0.125*yi,0.5+0.5*xi), ', ...            'color(''magenta''), plot(xa,ya)'];type = values{2};switch type case 'Xc'  prompts{7} = 'Xc_max and Xc_min [p.u.  p.u.]';  enables{9} = 'off';  set_param(object,'MaskDisplay',display1); case 'Alpha'  prompts{7} = 'Alpha_max and Alpha_min [rad  rad]';  enables{9} = 'on';  set_param(object,'MaskDisplay',display2);endtype = values{3};switch type case 'constant_power_flow'  enables{8} = 'on'; otherwise  enables{8} = 'off';end

⌨️ 快捷键说明

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