y = 0.5*δ(t+9) + 0.25*δ(t+3) + 0.25*δ (t-3) + 0.25*δ(t-9)
how to you plot y function in MATLAB? δ is a delta function i tried to use dirac function in MATLAB i am just keep getting errors could you give me a code for the y function in MATLAB? thank you
While using dirac function for generating impulse signal, then for t=0 or t+a=0 or t-a=0 it will give infinite value (Inf).
Then we should find the positions where the value is infinite and there we need to replace with finite coefficient value.
If coefficient is 1 then replace with 1 (it will give unit impulse at that point).
MATLAB code:
clc;clear all;
t=-15:1:15;
y = 0.5*dirac(t+9) + 0.25*dirac(t+3) + 0.25*dirac(t-3) +
0.25*dirac(t-9);
idt = y == Inf; % find Inf
y(idt) = 1*[0.5;0.25;0.25;0.25]; % set Inf to finite coefficient
value
stem(t,y)
xlabel('Time t')
ylabel('amplitude of y')
MATLAB result (plot):
y = 0.5*δ(t+9) + 0.25*δ(t+3) + 0.25*δ (t-3) + 0.25*δ(t-9) how to you plot y function...
HELP WITH MATLAB PRGRAM! Please only use matlab to slove this
program! Thank you!
Create a 3-D mesh plot of the function Z 1 / 1 + 0.5 x + y-1 ). Let both x and y vary from-4 to +4. La e and title the plot "Jack and Jill'sHill" (be sure the single quote in the word Jill's is in the title) ex y, anď z axes T stance East n · Distance North n andĺ Height (m)
Create...
how do i make this function and plot it in matlab?
p(t) 1.5 0.5 0.5 -1 2 2.5 3 3.5 4 4.55 0 05 5 22 Fig. 3: Training signal
"You need $73323 in 11 years. If you can earn 0.25 percent per month, how much will you have to deposit today (in $)?" The correct answer is $52735.36. But I keep getting $52970.10. My calculations are: PMT=0 FV= $73323 I/Y= 0.25 x 12= 3 N= 11 I am hoping you can explain to me where my error is.
C.14. Plot the function y = 3cos(2nt)(U(t – 0.5) – U(t – 1.5)) through t = 2.
Provide Matlab Code. with graph.
Q.4 Plot the following function f(t)- Plot f(2t-3).
use laplace transform to solve initial value problem.
thank you
y(0) = 0 y(0) = 1, 11. y" + 4I/ + İSy = δ(t-n) + δ(t-37), r + -2(t-r) sin 3 (t-
y(0) = 0 y(0) = 1, 11. y" + 4I/ + İSy = δ(t-n) + δ(t-37), r + -2(t-r) sin 3 (t-
22Hello, I am keep getting this warning on MATLAB; ''Assignment has more non-singleton rhs dimensions than non-singleton subscripts'' what does it mean?? the matlab code is; %%Use the built-in min and max function to find minimum element of matrix A and maximum element of matrix B for each column fprintf('Matrix from minimum of A maximum of B: \n'); A = [22,0;12 -4]; B = [14,4;-3 9]; R(1,:) = max(B); R(2,:) = min(A); disp(R); can you help me?? thank you so...
For the signal x(t) depicted below x(+) half if the graph is written below as a matlab code. please complete the rest of it using the the code below. thank you. Use Matlab and its symbolic toolbox to plot the signal x(t). Some hints: a. The step function in Matlab is called "heaviside" b. The left triangle of x(t) can be plotted by the following commands: % define symbolic variable t symst % define function x as a function of...
Numerical Analysis: Make a matlab code that computes the Midpoint rule/method for a given function f'(t,y) = y' = t + y from 0 < t < 4 (inclusive) with h=0.5 and with initial condition y(0) = 0. Please make output display in tabular form and not in a plot, that doesn't help show the actual values.