chinsin83
Junior Member level 2
simulink variable selector
if i create a subsystem, how do i use the input from one of the input ports as a variable?
e.g. i wan to select a block size of n-by-n matrix from a bigger matrix. there is the block "submatrix", but it does not accept indexing output from other blocks unlike the "variable selector" block. but the "variable selector" block only selects rows or columns, it does not allow me to specify a block size that i wan.
can i mask the subsystem and create a parameter = one of the input port, so i can use it as a variable? and how do i do it?
if i create a subsystem, how do i use the input from one of the input ports as a variable?
e.g. i wan to select a block size of n-by-n matrix from a bigger matrix. there is the block "submatrix", but it does not accept indexing output from other blocks unlike the "variable selector" block. but the "variable selector" block only selects rows or columns, it does not allow me to specify a block size that i wan.
can i mask the subsystem and create a parameter = one of the input port, so i can use it as a variable? and how do i do it?