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

3 years ago | 0

| accepted

Question


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

3 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer

Question


3D Plot of 2D sim
I have the following code. The code works for me now and it provides a 2D plot, however I am trying to plot a 3D plot. So an exa...

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 1 answer | 0

1

answer