MATLAB code is given below in bold letters.
clc
close all;
clear all;
% define er
Er = 10;
E0 = 8.85*8.85e-12;
% define e
E = Er*E0;
% define permeability
mu0 = 1.256e-6;
mu = mu0;
% define sigma
sigma = 4;
% define frequency vector
w = 2*pi*logspace(-3,5,1e3);
% now define the attenuation constant
alpha = w.*sqrt(mu*E/2*(sqrt(1+(sigma./(w*E)).^2)-1));
% Now plot w vs alpha
figure;
plot(w,20*log10(alpha),'linewidth',2);
grid on;xlabel('frequency (rad/sec)');ylabel('dB/m');
title('attenuation constant, \alpha');
please provide the Matlab code and figure. P2) Use MATLAB to plot the attenuation constant a...
12.22 Draw the Bode plot for the network function, IN MATLAB, please provide MatLab code for the work and screenshots of the Bode Plot
matlab code as well please. 7. (100) Design a bandpass FIR filter with the following Spec: (a) Lower cut off frequency: 1250Hz, (b) lower transition width: 1500Hz, (c) upper cutoff frequency: 2850 Hz, (d) upper transition width: 1300 Hz, (e) stop band attenuation: 60dB, (f) passband ripple 0.02 dB, and (g) sampling frequency: 8000Hz. Your answer needs to include (i) normalized frequencies, (ii) Window type, (iii) order of the filter and their numerical values computed by matlab command firwd(), and...
Using MATLAB, duplicate to the two graphs shown in the figure below Requirements 1. Show the MATLAB code used to plot both functions 5cos (nt-ng) (V) 5 e-"X cos (2nft-2nx/A) (V) a. y b- Use the frequency, wavelength and attenuation shown in the figure below when plotting graph (b) 2. 3. 4. Place labels for the x and y axis showing appropriate units Extend the x-axis to 10 cm and use a sampling rate of 0.1 mm Submit the final...
Provide Matlab Code. with graph. Q.4 Plot the following function f(t)- Plot f(2t-3).
please solve on matlab and provide code thanks, im having a hard tike understanding it. Name: ECE 471, In class problem: 2.3 a=125 sec- At = 1msec, In Matlab, plot g(t) t = n At, tel-100 At:100] at u(t) t>O g(t) = -eat u(-t) t<0 Use the FFT to compute g(f), g(f) fft (g)
PLEASE USE MATLAB TO ANSWER ALL OF THE PARTS. PROVIDE MATLAB CODE FOR EACH OF THE PART. PUT THE ANSWER IN A BOX. Consider the unity feedback system depicted in Figure 1 G(s) R(s) 50K s(s + a) Figure 1 1. Determine the system's closed loop transfer function. 2. Plot the system's step response for K=10 and: • a= 2 • a=5 • a= 10 3. What happens to the system's response as a increases? Justify your answer. 4. In...
Please solve/plot using Matlab. Please provide the code! 5.22 The voltage source (t) in the circuit of Fig. PS.22 generates a square wave (waveform #1 in Table 5-4) with A-10 V and T = 1 ms.
If you can provide the MatLab code too, thank you! 3. The equation of motion of a general mass-spring system subject to an external force F(t) is mr" + cr' + kr = F(t) where m, c and k are the mass, damping coefficient and spring constant respectively. Let's consider a simple undamped system where m = 1, k = 1, and c= 0 and with forcing function F(t) = 0.5 cos(t) (all in SI units) "+=0.5 cos(1) Find the...
Don't use fplot command. Matlab code. Write out code please, don't make it a screenshot. 2. Use the subplot command to make two plots of the function f(x) = (x + 1)(x - 2)(2x – 0.25) - et one graph for 0 < x <3 and the other for 3 < x < 6. Use a logarithmic scale for the y-axis. Include a plot title (for each subplot), and label both aris(for each subplot).
Please provide MATLAB code and plot, about system response. Will thumbs up. Thanks. Question 1: MATLAB contains a built-in function called conv which performs the convolution of two vectors: >> help conv conv Convolution and polynomial multiplication. C - conv(A, B) convolves vectors A and B. The resulting vector is length MAX ([LENGTH (A)+LENGTH (B)-1, LENGTH(A),LENGTH (B) 1) If A and B are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials. Compute the system response...