MATLAB: Can I set the data parameter of a Fromworkspace block by programming ??

fromworkspaceset_paramsimulink

hello everyone, I would like to know how I can set the data parameter of a Fromworkspace block by programmation matlab. I tried with the set_param instruction but I can't find the parameter to choose the variable of the workspace.

Best Answer

set_param('BlockPath','VariableName','VariableNameHere');