%% Are you using simulink model? you can sweep using a loop.
%% For example 'kp' is your model parameter and named as 'kp'
open_system('your_system')
kpSweep = 1:diff:10;
for i = 1:length(kpSweep)
kp = kpSweep(i);
[out params] = sim('your_system');
end