MATLAB: How to assign different sample times for a sinusoidal signal in simulink

different sample time

I have a sinusoidal signal of frequency 50Hz (Period = 0.02s). I want the initial sample time to be 0.00025 seconds and the remaining of the signal should be sampled at 0.000167 seconds. Please help

Best Answer

You can use a zoh block combined with a switch block