Question: MATHLAB.... i just dont know how to subplot it? function [returnParameters] - FunctionName (inputParmeters) % Body of the function end Let's use this syntax to

MATHLAB.... i just dont know how to subplot it?

MATHLAB.... i just dont know how to subplot it? function [returnParameters] -

function [returnParameters] - FunctionName (inputParmeters) % Body of the function end Let's use this syntax to create a function that will help us generate sine waves and sample them. The block of code provided below will help us achieve this goal. Complete the blanks and plot 3 Sine plots. function [t,y] -gensine (frequency, , time, numofsamplesPerPeriod) ; % Frequency of the sine wave a-amplitude ; % Amplitude of the sine wave *f; % sampling frequency t 0:dt: time ; % Length of time for plotting. y -a*sin(2*pi*f*t) end Now let's make use of this function. Complete the following exercise Generate and plot three sine waves using genSine) function you made with following configurations. Make only one figure with three subplots. 1. Frequency 0.5 Hz, Amplitude 2, Time 5, 10 SamplesPerPeriod 2. Frequency 2 Hz, Amplitude 2, Time 5, 10 SamplesPerPeriod 3. Frequency 2 Hz, Amplitude 2, Time 5, 5 SamplesPerPeriod

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To complete the given function and subplot the sine waves in MATLAB you can follow these steps Step ... View full answer

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 Databases Questions!