It is my understanding that you are trying to model a circuit in Simscape and want to change the Block parameters of Input source block with a set of values and verify the output.
Please refer to this Changing Simscape run time parameter documentation to know how to change the Constant voltage parameter in DC voltage block in the shipped model ssc_dcmotor
If you wish to change the values of Constant voltage parameter in DC voltage block programmatically in every simulation run, please refer the code below:
clear all
Voltage_inputs=[5 1.5 2.5 5 1.5]; %Provide a set of 5 voltage values
%Open the model ssc_dcmotor and Specify the Constant voltage parameter value for the DC voltage block as the variable vDC as given in the documentation
for i=1:5
vDC=Voltage_inputs(i); %Get one voltage value per simulation and store it in vDC
sim('ssc_dcmotor'); %Simulate the model
end
Also, if you want to change the time parameter in Scope block, navigate to the scope block menu, select View > Configuration Properties >Time. Refer the Scope block documentation to change the Time and other parameters in the scope block