Design and load waveforms in Matlab & Simulink