Recent content by csc
-
C
MATLAB_Quantum Well_Finite Difference Method
How do I do a for loop in MATLAB in order to make the k0 diagonal -2, k-1 diagonal 1, and k+1 diagonal 1? I understand the physics behind it just not how to code a matrix that has different diagonals. The "diag" function only gives you the option of changing one diagonal like if instance...- csc
- Post #3
- Forum: Introductory Physics Homework Help
-
C
MATLAB_Quantum Well_Finite Difference Method
Homework Statement Hi, I am new to MATLAB and have an assignment where I have to construct a Hamiltonian matrix, apply boundary conditions, then find corresponding eigenvalues and eigenvectors for the electron in a box problem. I am stumped where to start. From our class we learned that you...- csc
- Thread
- Difference Finite difference method Matlab Method Particle in a box Quantum mechanics Quantum well
- Replies: 3
- Forum: Introductory Physics Homework Help