代码搜索:Block
找到约 10,000 项符合「Block」的源代码
代码结果 10,000
www.eeworm.com/read/431224/8697072
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
type = str2num(values{1});
idx1 = [4 5 6 7 8];
idx2 = [7 8 11];
switch type
case 1
prompts(idx1) = {'Regulator Gain m0 [p.u./
www.eeworm.com/read/431224/8697492
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
value = str2num(values{2});
names = get_param(object,'MaskNames');
if strcmp(names{2},'p6q')
type = value;
else
return
end
if
www.eeworm.com/read/431224/8697538
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
display1 = ['plot([1 2 2 1 1],[-1 -1 1 1 -1]),color(''red''),', ...
'plot([1 2],[-1 1],[2 1],[-1 1])'];
display2 = ['p
www.eeworm.com/read/431224/8697861
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
type = values{4};
switch type
case 'on'
prompts{2} = 'Percentage of resistance, active current and active power [%, %, %]';
pr
www.eeworm.com/read/431224/8697918
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
type = str2num(values{1});
idx1 = [6 7];
idx2 = [8 9 10];
switch type
case 1,
prompts(idx1) = {'Governor Time Constant Ts [s]';
www.eeworm.com/read/431224/8698093
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
type = str2num(values{2});
idx = [4, 7];
switch type
case 1, enables(idx) = {'off'; 'off'};
case 3, enables(idx) = {'on'; 'off'
www.eeworm.com/read/431224/8698270
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
type = values{4};
switch type
case 'on', enables{3} = 'on';
case 'off', enables{3} = 'off';
end
www.eeworm.com/read/431224/8698412
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
display = 'plot(xc,yc), color(''blue''), text(-0.5,0.1,';
num = str2num(values{2});
type = get_param(object,'MaskType');
blocks =
www.eeworm.com/read/431224/8698520
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
display1 = ['plot(x,y,x+1.4,y,[2.4 2.8],[0 0],[3.1 3.5],[0 0],[-1 -2],[0 0],0,2), color(''green''), plot([2.95 2.95],', ...
www.eeworm.com/read/431224/8698597
m block.m
function [enables,prompts] = block(a,object,values,enables,prompts)
switch values{8}
case 'on'
cx1 = 'plot([0 1 1 0 0],[0 0 1 1 0]), ';
cx2 = 'color(''blue''), ';
cx3 = 'plot([0 1],[0 1]