Community Profile

photo

Craig Egan Allistair Tan


Last seen: Today Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


What command/s can I use to multiply matrices M_G and M_A via Transfer Matrix Method N times given N pairs?
lambda_0 = 0.980; % Cavity length of DBR mirror in micron d_G = 0.0697...

3 dagar ago | 0 answers | 0

0

answers

1

answer

Question


How to I find the intersection point between y=x*exp(x)/(exp(x)-1) and y=3? I can't seem to have the intersection point displayed.
x = 1:1:10; f = @(x) x.*exp(x); g = @(x) exp(x)-1; y_1 = @(x) f(x)./g(x); y_2 = @(x) yline(3,'b'); intersection = find(y_1(...

4 månader ago | 1 answer | 0

1

answer

Question


How do I plot fractional orders of the Bessel function of the first kind (e.g. J_{1/3}(x))? Can I still use the besselj function?
clc;clear all;clf; x=-20:0.1:20; J1/3=besselj(1/3,x); figure(1) plot(x,J1/3,'k'); grid on legend('J_{1/3}') xlabel('x');y...

5 månader ago | 1 answer | 0

1

answer

Question


Hello, I'm trying to plot one non-piecewise function and two piecewise functions in one graph but I keep getting an error. I don't understand the two error messages below.
clear all; close all; clc; function y = piecewise1(x) switch x case x * (x < 0 & x <= 1) y = 1*x-(1/2)*x^2; ...

6 månader ago | 1 answer | 0

1

answer

Question


Hello, I'm trying to plot the I-V curve for a MOSFET, but I get a "Vectors must be the same length" error message. I don't understand why this is the case.
clear all; close all; clc; x1 = 0:0.01:0; y1 = (0).*x1-(1/2).*x1.^2; x2 = 0:0.01:6; y2 = (1/2).*0^2; x3 = 0:0.01:1; ...

6 månader ago | 1 answer | 0

1

answer

Question


Hello, I am trying to plot the transmission coefficient vs energy for the double barrier potential, but I get an error. May I know what I have done wrong here?
V_0 = 0.2800; % Barrier strength in eV hbar = 1.054571596e-34; % Reduced Planck constant m = 5.465629128e-32; % 0.06*m_e L = ...

7 månader ago | 1 answer | 0

1

answer