Community Profile # Craig Egan Allistair Tan

Last seen: Today Active since 2021

#### Statistics

• #### 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

### 1

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(...

### 1

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...

### 1

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; ...

### 1

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; ...