Question

Assignments Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1...

Assignments

Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.

Generate and plot the function x2(t) = sin (30pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.

Generate and plot the combination function x3(t) = x1(t)*x2(t) as above. Use proper axes labels with title.

Generate and plot the sum of two cosine waves   v1(t) = cos(20pt) and v2(t) = cos(22pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title. Let x4(t) =v1(t) +v2(t).

Generate and plot the signal represented by    x5(t) = e-0.1t sin (2t/3), for t ranging from 0 to 30 in 0.1 increments. Use proper axes labels with title.

Generate and plot the signal represented by    x6(t) = sin (4pt)/ 4pt, for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title

                                                                                                 

Plot the function x7(t) = (1 – e -2t ) cos (60 pt). Use t from 0 to 0.25 in 0.001 increments. Use proper axes labels.

Plot a discrete-time signal x[n] using the following commands:

>> n= -2: 6;

>> x=[ 0 0 1 2 1 0 –1 0 0];

>> stem(n,x);

>> xlabel(‘n’);

>> ylabel(‘x[n]’);

>> title (‘ Plot of a discrete-time Signal’);

The force f(t) in newtons(N) in a certain industrial process increases with the square of time over a particular time interval and cab be expressed as

                        f(t) = 0.25 t2 .

      Use MATLAB to plot the function from t=0 to t= 10 s.

Write MATLAB Program codes and Comments on your observation about each signal plot.

     

Use help command for all MATLAB commands to know the detail.

  

MATLAB commands used:

sin     cos       exp     pi     plot    stem   grid    xlabel    ylabel      title  

Homework Answers

Answer #1

t=-1:0.001:1;
x1=1+sin(4*pi.*t);
plot(t,x1)
title('waveform for x1(t)')
xlabel('time')
ylabel('amplitude')
x2=sin(30*pi.*t);
plot(t,x2);
title('waveform for x2(t)');
xlabel('time');
ylabel('amplitude')
x3=x1.*x2;
plot(t,x3);
title('waveform for x3(t)');
xlabel('time');
ylabel('amplitude')
v1=cos(20*pi.*t);
v2=cos(22*pi.*t);
x4=v1+v2;
title('waveform for x4(t)');
xlabel('time');
ylabel('amplitude')


Multiple subparts

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
SIGNALS AND SYSTEMS Experiment 1    Signal Generation Date: January 1-8, 2018 The purpose of this...
SIGNALS AND SYSTEMS Experiment 1    Signal Generation Date: January 1-8, 2018 The purpose of this laboratory is to familiarize you with the basic commands in MATLAB for signal generation and verify the generated signal. Objectives 1.Learn basic MATLAB commands and syntax, including help system. 2.Use MATLAB ( from Citrix) to generate and plot different signals. Assignments Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes...
Question : Design the low and high pass filter for the signal, x(t) = 10 sin...
Question : Design the low and high pass filter for the signal, x(t) = 10 sin (10 t) + 1 sin (1000 t) by MATLAB Is below answer right? at ?High pass , 5row shouldn't this change from sin(100*t) ? sin(1000*t) x = 10*sin(10*t) + 1*sin(100*t); ?   x = 10*sin(10*t) + 1*sin(1000*t); ??? ..................................................................................................................................................... ?Low pass clc; rng default Fs=2000; t=linspace(0,1,Fs); x=10*sin(10*t)+sin(1000*t)%given signal n=0.5*randn(size(t));%noise x1=x+n; fc=150; Wn=(2/Fs)*fc; b=fir1(20,Wn,'low',kaiser(21,3)); %fvtool(b,1,’Fs’,Fs) y=filter(b,1,x1); plot(t,x1,t,y) xlim([0 0.1]) xlabel('Time (s) ') ylabel('Amplitude') legend('Original Signal','Filtered Data')...
Below are three different codes in Matlab, please copy those your matlab and answer the following...
Below are three different codes in Matlab, please copy those your matlab and answer the following questions: Thank you for your help!!!! 1.1 Baseband Signal a) Plot time versus baseband signal (m_sig). b) Plot freq versus baseband signal spectrum (M_fre). 1.2 Amplitude Modulation – Suppressed Carrier. a) Plot time versus the DSB-SC signal (s_dsb). b) Plot freq versus the DSB-SC signal spectrum (S_dsb). 1.3 Coherent Demodulation a) Plot freq versus the pre-filtered signal (S_dem). b) Plot freq versus the post-filtered...
Write a MATLAB m file to plot the 3-D curve represented by a multivariable function z(x,y)...
Write a MATLAB m file to plot the 3-D curve represented by a multivariable function z(x,y) = x2 −0.5y2 over x ∈ [−2,2] and y ∈ [−2,2]. Use a 2 point thickness. For both x an y axes, choose the grid size to be 0.05. Clearly label and title your plot. Rotate the view at an azymuth of −20 , and elevation of 20 . You need to use the following commands: x=-2:0.05:2; y=x; z=x.^2-0.5*y.^2; plot3(x,y,z,’LineWidth’,2) label(’ My 3D curve’);...
A signal described by y(t) = .25*sin(6000*t) + cos(3500*t) was sampled with fs = 1 kHz....
A signal described by y(t) = .25*sin(6000*t) + cos(3500*t) was sampled with fs = 1 kHz. Determined: a) Whether this signal was aliased. Provide the spectral plot (magnitude versus frequency) b) If the signal proved to be aliased, find the right sampling rate c) Provide the spectral plot indicating the right frequencies of the signal
MATLAB Create an M-File for this IVP, dy/dt = t^2 - 16*sin(t), y(0) = 0 and...
MATLAB Create an M-File for this IVP, dy/dt = t^2 - 16*sin(t), y(0) = 0 and create an anonymous function g so that it evaluates the slope field at points of our new ODE. Ensure you use commands of using a for loop to plot the exact solution for the IVP in this exercise as well as the Euler approximations for Δt=0.5, Δt=0.25, and Δt=0.125 all on the same graph.
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and save your Matlab code in a script file. i) Cosine signal of frequency 100 Hz over the range [0,0.1] seconds and samples spaced 10^- 4 seconds apart with a phase of pi/2 and an amplitude of 1.   PLEASE USE MAT LAB ONLY. THANK YOU ii) A square wave that oscillates between 0 and 1 every five samples, plot 3 periods of the waveform. iii)...
Use Matlab to solve the following (a) Create a plot with a sphere at the center...
Use Matlab to solve the following (a) Create a plot with a sphere at the center of the graph (origin) representing the sun with a radius of 6955000 km. Make sure that the outside of the sphere is painted in ’autumn’ colors. (Hint: look up the sphere() function, the colormap() function, and the surf() function). (b) Create a variable t ranging from 0 to 2? with increments of 0.01. (c) The following Table gives you important values needed to compute...
1. Now generate y array using the function file my_func for the x array varying from...
1. Now generate y array using the function file my_func for the x array varying from 0 to 4 with an increment of 0.2. Generate x and y arrays without using any loop statement and do not print these arrays. 2. Off of question 1. Using MATLAB plot routine, plot y-array against the x-array generated in question 1. On this plot show grid lines, label the axes as x and y, and write the text ‘y=f(x)’ next to the plotted...
Given signal x(t) = sinc(t): 1. Find out the Fourier transform of x(t), find X(f), sketch...
Given signal x(t) = sinc(t): 1. Find out the Fourier transform of x(t), find X(f), sketch them. 2. Find out the Nyquist sampling frequency of x(t). 3. Given sampling rate fs, write down the expression of the Fourier transform of xs(t), Xs(f) in terms of X(f). 4. Let sampling frequency fs = 1Hz. Sketch the sampled signal xs(t) = x(kTs) and the Fourier transform of xs(t), Xs(f). 5. Let sampling frequency fs = 2Hz. Repeat 4. 6. Let sampling frequency...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT