How do I sweep the value of a "gain block" in simulink? can I do a few iterations, each one with different value in the gain block? Thanks
Kshitij Singh answered .
2025-11-20
gain=[1:20];
for n=1:length(gain)
G=gain(n);
run('simulink_model_name')
end