📄 nswitch.htm
字号:
<HTML>
<HEAD>
<TITLE>FDC help: NSWITCH</TITLE>
</HEAD>
<BODY BGCOLOR="#DED6D3" TEXT="#000000" LINK="#660033" VLINK="#660033" ALINK="#000080">
<H2>The utility <I><FONT FACE="Arial","Helvetica","Sans Serif">NSWITCH</FONT></I></H2>
<I><FONT SIZE=2 FACE="Arial","Helvetica","Sans Serif">NSWITCH</FONT></I> is a routine to generate an <I>n</I>-switch block for graphical S<SMALL>IMULINK</SMALL> systems. This is a switch with <I>n</I>+1 inputs, of which the first input is a control signal for the switch which specifies which of the other inputs may pass through. The output of the <I>n</I>-switch is equal to:
<PRE> y = u(u[1]+1)
</PRE>where <I>u</I>[1] is the switch-control signal.<BR><BR>
Typing <CODE>nswitch(N)</CODE> at the command-line will start-up the automatic block-construction of an <I>n</I>-switch with <I>N</I> inputs (excluding the additional control input). If the input argument <I>N</I> is not specified, the routine will automatically ask for the number of inputs.<BR><BR>
The block generated by <I><FONT SIZE=2 FACE="Arial","Helvetica","Sans Serif">NSWITCH</FONT></I> is a masked S<SMALL>IMULINK</SMALL> subsystem. Double-click this block to see what kind of structure is actually generated (and be surprised!).
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -