Part a:
Write a Matlab code that generate Exponential Function.
Part b
Write a Matlab code that generate sinusoidal Function.
Part c
Write a Matlab code that generate Unit Ramp delay (shift) function
clc;
clear all;
close all;
t=0:0.0002:0.06;
f=50;
w=2*pi*f;
X1=sin(w*t);
plot(t,X1);
output:
t=0:0.01:10;
F=exp(-t);
plot(t,F); %%exponential plot%%
output:
t=0:0.01:30;
F1=(t-1).*heaviside(t-1);
plot(t,F1) %%ramp with delay%%
output:

Part a: Write a Matlab code that generate Exponential Function. Part b Write a Matlab code...
Part A: Write a generic Matlab code that generates delayed (shifted) Unit Impulse function. Part B: Write a generic Matlab code that generates delayed (shifted) Unit step function. Part C: Write a generic Matlab code that generate delayed (shifted) Unit ramp function.
In your initial post, generate one of the following DISCRETE signals using a MATLAB function: The step signal The impulse signal The ramp signal The sinusoidal signal The decaying sinusoidal signal Let the signal you consider span the indices from –b to +b where b is your birth month. Calculate the total energy in the signal using MATLAB.
Write Matlab Code Only Generate a multi-tone sinusoidal signal with f1=2000Hz and f2=4000Hz, then by sampling generate the Oversampled and Undersampled version of it and display the frequency response also.
in matlab (a)Write a function to generate n random integers between -b and b. (b) Using the function you wrote in (a) generate 50 random numbers in a vector A where b = 100; (c) This array A will contain both negative, positive and possibly zero entries. Write a MATLAB script to compute the percentage of positive, negative and zero entries in the array.
Using MATLAB, not R codes, I repeat, please, not in R, just MATLAB codes, write the complete code for: 1. Assume Y is an exponential random variable with rate parameter λ=2. (1) Generate 1000 samples from this exponential distribution using inverse transform method (2) Compare the histogram of your samples with the true density of Y.
Please use MATLAB code to answer these questions 2-1 Generate a pulse function with a pulse width 1 second as an input function, x(t), and use the same exponential decay function as impulse response function, h(t). Using MATLAB to calculate the output of the system y(t). 2-2 Reduce the pulse width (such as 0.1 second) and repeat the question 2. Analyze the difference. 2-3 Change the decay constant of h(t) (such as 1 and 3) and repeat the question 2....
Write a Matlab code to generate Gold code and test its cross and auto correlation properties
Q: please solve using matlab code withe comment 1. Write the Matlab code to generate: x = cos(w1*t) + cos(w2*t); where, w1=7; w2=23; t = [0:0.005:2] 2. Plot the signal using sub plot a. in time domain b. in frequency domain 3) Sample the signal under different sampling conditions: a. Ts<1/2fm b. Ts=1/2fm c. Ts>1/2fm 4). Multiple plot: the signal sampled under sampling condition and the signal x a. in time domain b. in frequency domain c. Label and Title...
write a matlab script for a generic ramp function r(t) then plot for y=ramp(t,3,0). The variable t is in the interval-5<t<5 and increments in steps of 0.01 function y = ramp(t,m,ad). %t= time support, m= ramp slope, ad = signal advance(positive)/delay(negative)
Write a MATLAB code to obtain the 4-level uniform quantizer for the exponential random variable with p(x) = e^(−x ) for x ≥ 0.