Community Profile

photo

Alvin


Active since 2017

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Inconsistent looping issue with trapz()
clear C1 = 0:1:1; %C1 = linspace(0,500,1000); k1 = 1; k2 = 0; n1 = 0; n2 = 0; nm = 1; D = 0; O = 0; gam = 1e-04.*k1; ...

5 years ago | 1 answer | 0

1

answer

Question


Area difference in using trapz() through a loop and without a loop.
clear C1 = 0; k1 = 1; k2 = 0; n1 = 0; n2 = 0; nm = 1; D = 0; O = 0; gam = 1e-04.*k1; alph = 0; w = linspace(-5...

5 years ago | 0 answers | 0

0

answers

Question


Fundamental issue with trapz() function (or not?)
clear C1 = 0; k1 = 1; k2 = 0; n1 = 0; n2 = 0; nm = 1; D = 0; O = 0; gam = 1e-04.*k1; alph = 0; w = linspa...

5 years ago | 1 answer | 0

1

answer

Question


Trapz error (ORDER contains an invalid permutation index)
clear C1 = linspace(0,1e+04,3000); k1 = 1; k2 = 0; n1 = 0; n2 = 0; nm = 0; D = 0; O = 0; gam = 1e-04.*k1; alph =...

5 years ago | 1 answer | 0

1

answer

Question


On plot divisions and possibly numerical resolution
clear C1 = linspace(0,1000,1000); C2 = 49.28; k1 = 0.5; k2 = 5; n1 = 0; n2 = 0; nm = 0; D = -1; O = 1; gam = 0.0...

5 years ago | 1 answer | 0

1

answer

Question


On looping over drawnow
clear C1 = 20000; C2 = linspace(0,26,5500); k1 = 0.5; k2 = 5; n1 = 0; n2 = 0; nm = 0; D = -1; O =...

5 years ago | 1 answer | 0

1

answer

Question


pks array going from 2 arguments to 1
clear g1 = 1; g2 = 0; k1 = 0.2; k2 = 0.1; n1 = 0; n2 = 0; nm = 0; D = 1; O = -1; gam = 0.2; alph = 0; C2 =...

5 years ago | 1 answer | 0

1

answer

Question


Cumtrapz with cell arrays in a double loop
clear %g = 1; %Coupling strength k = 20; %Decay linewidth for cavity no = 0; %input photon number for cavity nm...

5 years ago | 1 answer | 0

1

answer

Question


On double looping and confusion with cell arrays and cumtrapz() function
clear g = 1000; k = 20; no = 0; nm = 40; Del = -(10.^2); Ohm = (10.^2); gam = 0.0032; C ...

5 years ago | 1 answer | 0

1

answer

Question


Plotting with multiple nested arrays issue with trapz() function.
clear %g = 1; k = 0.2; no = 0; nm = 0; Del = 1; Ohm = -1; gam = 0.2; w = (-10:0.01:10);...

5 years ago | 1 answer | 0

1

answer

Question


On using Trapz for a function defined by a variable using syms
clear g = 1; k = 0.2; no = 0; nm = 0; D = 1; O = -1; gam = 0.2; syms w xa = -1i.*(w+D)+...

5 years ago | 1 answer | 0

1

answer