Find nonzero elements in array
万博1manbetxSimulink /数学操作
TheFind Nonzero Elementsblock locates all nonzero elements of the input signal and returns the linear indices of those elements. If the input is a multidimensional signal, theFind Nonzero Elements块还可以返回非零输入元素的下标。在这两种情况下,您都可以显示具有非零输入值的输出端口。
TheFind Nonzero Elementsblock outputs a variable-size signal. The sample time for any variable-size signal must be discrete. If your model does not already use a fixed-step solver, you may need to select a fixed-step solver in the Configuration Parameters dialog. For more information, seeSolvers和Choose a Solver.
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|