photo

Yogesh


Last seen: 2 maanden ago Active since 2024

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How do I calculate area under the curve(power of the spectrum) in frequency axis
clear all close all clc P0=100; eps0=8.854e-12; L=10; n=1.45; Omega=1.020663297455751e+11; GAMMAb=3.590391604102621e+08;...

2 maanden ago | 1 answer | 0

1

answer

Question


I am getting different values of fft for the same variable as demonstrated by a simple example below...
E=[1 2 4 6;3 6 3 9;7 5 8 9] EF=fftshift(abs(fft(E))) ES=fftshift(abs(fft(E(:,1)))) shouldn't ES be equal to the first row of ...

2 maanden ago | 1 answer | 0

1

answer

Question


Getting different outputs from indexing and graphically.How do I verify this indexing value?..
clear all close all clc L=10; n=1.45; Omega=1.020663297455751e+11; GAMMAb=3.590391604102621e+08; c=2.9979e8; dt=6e-12; ...

2 maanden ago | 1 answer | 0

1

answer

Question


How do I find the value closest to my desired value in a vector
L=10; n=1.45; c=2.9979e8; dt=6e-12; %time increment Omega=1.020663297455751e+11; GAMMAb=3.590391604102621e+08; T=10*2*L*n/...

2 maanden ago | 1 answer | 0

1

answer

Question


I can't place the fft curve at the signal frequency exactly. There's been a slight deviation of the fft peak at that frequency
clear all close all clc L=10; n=1.45; c=2.9979e8; dt=6e-12; T=10*2*L*n/c; fmax = 1e9; fs=80*fmax; TA=-T/2:dt:T/2; ...

3 maanden ago | 1 answer | 0

1

answer

Question


I can't place the fft curve at the signal frequency exactly. There's been a slight deviation of the fft peak at that frequency
%program to find the fft of sine function of frequency 1GHz %Available information , frquency=1GHz clear all close all clc ...

3 maanden ago | 1 answer | 0

1

answer

Question


How di I find the FWHM of the curve and also convert the units from Watts to Decibles
clear all close all clc L=10; n=1.45; c=2.9979e8; dt = 6e-12; T=10*2*L*n/c; eps0=8.854e-12; A=80e-12; t = (-T/2/dt:1:T...

3 maanden ago | 1 answer | 0

1

answer

Question


Trying to ubderstand the power distribution in fft plot
clear all close all clc L=10; n=1.45; c=2.9979e8; dt = 6e-12; T=10*2*L*n/c; eps0=8.854e-12; A=80e-12; t = (-T/2/dt:1:T...

3 maanden ago | 2 answers | 0

2

answers

Question


Trying to find the integral under the curve at a certain bandwidth
clear all close all clc L=10; n=1.45; c=2.9979e8; dt = 6e-12; T=10*2*L*n/c; t = (-T/2/dt:1:T/2/dt)*dt; Nt=round(T/dt)...

3 maanden ago | 1 answer | 0

1

answer

Question


How do I assign frequency values to the obtained fft values without plotting . I need to know the value of the peak at 16Hz for further calculations.
clear all close all clc L=10; n=1.45; c=2.9979e8; dt = 6e-12; T=10*2*L*n/c; t = (-T/2/dt:1:T/2/dt)*dt; Nt=round(T/dt)...

3 maanden ago | 1 answer | 0

1

answer

Question


Struggling to decide the sampling frequency for this fft plot
clear all close all clc L=10; n=1.45; Can you guys help me with assigning the frequency values along the x axis , I am bit ...

3 maanden ago | 1 answer | 0

1

answer

Question


Need help in assigning frequency and normalising amplitude to the fft plot
clear all close all clc L=10; n=1.45; c=2.9979e8; dt = 6e-12; T=10*2*L*n/c; t = (-T/2/dt:1:T/2/dt)*dt; Nt=round(T/dt)...

3 maanden ago | 1 answer | 0

1

answer

Question


I am having trouble trying to maintain the loop
Nt=161224; dt=6e-12; T=9.6734e-7; Nz=8061; Q=2.3131e-6; dz=0.0012; N=8061; n=1.45; gammaE=0.8967; Z0=376.7343; A=8e-11...

3 maanden ago | 1 answer | 0

1

answer

Question


How do I get to repeat the below vector one behind another like a train for a fixed interval
EL=El_s.*exp(1i*phi); I have previously defined this vector for (1 x 10000) length. But I need to make this vector repeat like...

5 maanden ago | 1 answer | 0

1

answer

Question


I am trying to solve SBS equations but they are taking too much memory and hence the code is slow
globalize_vars; p=zeros(Nz,Nt); %% initial conditions if Is_stationary EL=El_s.*ones(Nz,Nt); ES=Es_s.*ones(Nz,N...

5 maanden ago | 1 answer | 0

1

answer

Question


how to convert second order ODE to first in the below FDTD problem
for index=1:iterationsNum I am currently workin on this particlar FDTD problem where it is required to input the above second...

6 maanden ago | 1 answer | 0

1

answer

Question


I have created a code to solve three coupled ODE but unable to plot its nature on the graph as one of the curve is imaginary .
clc clear all alpha=3.55*10^-3; sigma=3.7292*10^11; eta=rand; TB=3.59*10^8; delta_t=50*10^-12; n=1.45; c=3*10^8; Q=14...

7 maanden ago | 1 answer | 0

1

answer

Question


I am trying to solve this coupled ODE from the past few days using ode45 but there's an error at ode45 function which I am unable to understand .
close all clear all clc alpha=3.55*10^-3; sigma=3.7292*10^11; eta=rand; TB=3.59*10^8; delta_t=50*10^-12; n=1.45;...

7 maanden ago | 1 answer | 0

1

answer