Constant block doesn't accept array
3 views (last 30 days)
More Answers (2)
Jim Riggs on 28 Oct 2022
Yes, you can save the value to the workspace and reference it in a constant block. As @Paul points out, the label on the Goto block has nothing to do with the workspace variable name.
The "To Workspace" block saves the variable in structure "Out", and has several options for the variable format.
Below, I show a reference to variable "B" saved to the workspace as an array and as a Time Series. This option is selected in the properties of the "To Workspace" block.
Abderrahim. B on 24 Aug 2022
I understood that you want the output of the constant block to have the same size as the array in it.
Use the constant block from DSP System Toolbox/ Sources.
Hope this helps