Question

How to combine plots on subplot?

I need to plot 3 different plots with 4 different datas, however these plots must be subplot. But I cannot hold on them on corre...

7 jours ago | 1 answer | 0

Question

How to solve Schrödinger's equations in a Finite Quantum Well?

I need to solve schrödinger's equations in finite square quantum well on matlab. I have 3 regions and with equating them and the...

14 jours ago | 0 answers | 0

Question

How can i shift plot?

I have a code i need to shift to right my plot by 1,2,3 and 5, respectively on x axis p=[1/6 1/6 1/6 1/6 1/6 1/6]; q= conv(p,p...

29 jours ago | 1 answer | 0

Question

MATLAB Help - Rolling Dice Simulation / Central Limit Theorem

I need to write a program which throw dices for 100 times and plot mean value/frequency of same numbers. For 1, 2, 3, 4, 5 and 6...

29 jours ago | 1 answer | 0

Question

How to curve fitting for array?

I have 2 arrays, i've plotted them, now i needed to curve fitting for them. I've checked this page: https://www.mathworks.com/he...

2 mois ago | 0 answers | 0

Question

Matlab should have give array but it gives a number. How to fix?

I have a code to calculate some lambda values then uses these values with our r values to find d values. However, these values a...

2 mois ago | 1 answer | 0

Question

How to convert 1x21 array to table

I have a code to calculate lambda as 1x21 array, I want to convert this array to a table. How can i do it? U=[10 9.7 9.4 9.1 8....

2 mois ago | 2 answers | 0

Question

Finite Quantum Well Width issue

I have a code to solve Schrödinger equation for finite square well. However, when i change width of the well between 100-200 or ...

2 mois ago | 0 answers | 0

Question

How to fix "Undefined function 'sinc' for input arguments of type 'double'." Error

I found a code to use for my project far field diffraction generator however, I got an error called, Undefined function 'sinc' f...

2 mois ago | 1 answer | 0

Question

How to calculate far field diffractions of specific figures?

For our single/double slit experiment, TA wanted us to simulate diffractions of figures, like rectange, triangle and most import...

2 mois ago | 0 answers | 0

Question

How to avoid stepping back on random 2D walker

for n = 1:N . A = randi(4); rr=rand; if rr < 1/4 A = 1+mod(A,4); elseif rr < 1/2 A = 1+...

4 mois ago | 2 answers | 0

Question

Random Walk on 2D Modification

I have 2D random walk code part for neutrons. However, the code includes some conditions, 2 of them are: on the next step the n...

4 mois ago | 1 answer | 0

Question

How to get Random numbers only from -1 1 and 2?

I need to create a random integer numbers generator which only creates -1,1 and 2 here is my code for 1 or 2: for m=1:100 A=r...

5 mois ago | 2 answers | 0

Question

A capacitor formed by two square metal cylinders

I need to create a 3D capacitor which is made by 2 nested different square metal cylinders. I don't have any idea to create 3D c...

5 mois ago | 0 answers | 0