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

oltre 3 anni fa | 0

| accettato

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 4 anni fa | 1 risposta | 0

1

risposta