MATLAB: How do you set the step time parameter of a step input from a mask

initializationmaskMATLABset_paramsetting paramatersimulinkstep inputstep time

It is possible to change the sample time using this code witin the initialization section of the mask (the mask is on a subsystem and the step input is within the subsystem):
TheBlock = gcb;
set_param([TheBlock '/Step'],'sampletime','3')
But when trying to use the equivalent code to change the step time, it does not work.
set_param([TheBlock '/Step'],'steptime','3')
Does anyone have any suggestions

Best Answer

Found out through trial and error that this is what works:
set_param([gcb '/Step'],'time','3')
Related Question