Question: t = np.linspace(0, time_period, 500, endpoint=False) if function_choice == '1': y = np.zeros_like(t) y[0] = amplitude elif function_choice == '2': y = amplitude * np.sign(np.sin(2

t = np.linspace(0, time_period, 500, endpoint=False) if function_choice == '1': y = np.zeros_like(t) y[0] = amplitude elif function_choice == '2': y = amplitude * np.sign(np.sin(2 * np.pi * t / time_period)) elif function_choice == '3': y = amplitude * np.abs(np.sin(2 * np.pi * t / time_period)) elif function_choice == '4': y = amplitude * signal.sawtooth(2 * np.pi * t / time_period) elif function_choice == '5': y = amplitude * np.sin(2 * np.pi * t / time_period) elif function_choice == '6': y = amplitude * np.sinc(t / time_period) plt.figure() plt.plot(t, y) plt.show() function_generator() on matlab

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!