Community Profile

photo

Lujain Almarhabi


Last seen: 3일 전
18 2020 이후 총 참여 횟수

Lujain Almarhabi's 배지

  • Thankful Level 2

세부 정보 보기...

참여 게시물
보기 기준

질문


Why do I get "complex" arrays?
I am not supposed to get complex values but unfortunatley something is wrong in my eigenvalue caclultions. When plotting I get t...

약 1달 전 | 답변 수: 1 | 0

1

답변

질문


Why Do I keep getting NaNs in my code???
I have posted the full code but I generally do not umderstand why??

약 1달 전 | 답변 수: 1 | 0

1

답변

질문


How to save part of the data in text file?
I have the following plots at different time steps, I would like to save the data at the last time step in a text file. How can ...

약 1달 전 | 답변 수: 1 | 0

1

답변

질문


Help indexing: How to index at the interfaces of cells and not the cells
I am struggling to understand how to setup some indexing problem in MATLAB. If my entire domain is defined from 1 to N with a pa...

약 1달 전 | 답변 수: 2 | 0

2

답변

질문


Unable to perform assignment because the size of the left side is 8-by-1 and the size of the right side is 8-by-1001.
I am getting this error where I am sure the size of the left-side = the right side in this code, what else can be causing this p...

약 1달 전 | 답변 수: 1 | 0

1

답변

질문


Plot error: Index exceeds the number of array elements (104).
I am having the following error with plotting : Index exceeds the number of array elements (104). Error in MUSCL_main (line ...

약 1달 전 | 답변 수: 1 | 0

1

답변

질문


Error: Not enough input arguments
I have the following error in my Runge-Kutta (4 stage) function: Not enough input arguments. Error in RK4 for j = 2:N-1 % E...

약 2달 전 | 답변 수: 1 | 0

1

답변

질문


Index in position 2 exceeds array bounds (must not exceed 1001)
I have the following code with the error: Index in position 2 exceeds array bounds (must not exceed 1001) my code dx = 0.001;...

약 2달 전 | 답변 수: 1 | 0

1

답변

답변 있음
Warning: Imaginary parts of complex X and/or Y arguments ignored.
Thanks, but I found the error was a negative sign in a rooted term that needed an abs function to solve it.

약 2달 전 | 0

| 수락됨

질문


Warning: Imaginary parts of complex X and/or Y arguments ignored.
I keep getting this error messgae when plotting some quantaties. My code points out that U_T is a cmplex double which is not tr...

약 2달 전 | 답변 수: 1 | 0

1

답변

질문


Root finder solver for cubic equation
I have the following cubic equation in beta, knowing gamma, theta and M1 how can I find the roots of beta using MATLAB? for...

3달 전 | 답변 수: 1 | 0

1

답변

질문


How to fit an exponential curve? error: Dimensions of arrays being concatenated are not consistent
Hello, I have an energy plot that I would like to fit an exponential curve to. I have something like this numSteps = 5000; x...

4달 전 | 답변 수: 1 | 0

1

답변

질문


Array indices must be positive integers or logical values.
I am so confused why would I get this error. One minute the code is running fine and produces plots, the next is no longer runni...

4달 전 | 답변 수: 1 | 0

1

답변

질문


Index exceeds the number of array elements (101)
I keep getting this error for a function I wrote. Not quiet sure what it really means since I think the sizes of xe and xb are c...

4달 전 | 답변 수: 1 | 0

1

답변

질문


how to combine two plots in one figure
I have the following code and would like to plot the motion of a particle under the influence of magnetic field with two intensi...

4달 전 | 답변 수: 1 | 0

1

답변

질문


3D Plot of particle trajectory in E and B field
I have the following code that solves Lorents equation using Boris method time integrator and it calculates the gyro radius and ...

4달 전 | 답변 수: 1 | 0

1

답변

질문


Plotting 2D graph error: Index exceeds
Hello, I have the following code with some simple calculations, I am trying to plot eventually two plots: 1) Cpm/Rm VS T and 2)...

5달 전 | 답변 수: 1 | 0

1

답변

질문


MATLAB: How can I change the size of a structure of arrays?
I have the following the structure of arrays: ray_state_vec_in2.r = ray_state_vec.r(:,[1:3]); ray_state_vec_in2.Q = ray_stat...

7달 전 | 답변 수: 1 | 0

1

답변