Question

"Error using symengine>@()0.0 Too many input arguments."

I continue to receive the following error: Error using symengine>@()0.0 Too many input arguments. Error in bdipuniodefun (l...

10 dagen ago | 0 answers | 0

Question

ODE Solver Freezing Up

Hi, I tried using ode15s to solve a trajecotry solution and what is so odd here is that the solver exponentially becomes slower...

14 dagen ago | 0 answers | 0

Question

Matlab Cannot Find Functional Inverse

Hello, I have this code and want to find the inverse of the defined function, however Matlab says it is unable (Error below) and...

3 maanden ago | 1 answer | 0

Question

ODE Solver Running Very "Slowly"

Hello, I am using an ODE solver inside a for loop to run trajectories of particles in a magnetic field, however whenever I run ...

3 maanden ago | 2 answers | 0

Question

How to Generate a Random # Between -1 and 1?

Hello, I have a simple question. I want to produce a random number between -1 and 1 as the title states. I tried doing this alr...

5 maanden ago | 1 answer | 0

Question

What does this ODE error mean?

Hello, I don't understand why I am getting the following error: Error using odearguments (line 87) The entries in tspan must ...

5 maanden ago | 1 answer | 0

Question

Discritizing an ODE Solution

Hello, I have a conceptual question to ask. Say I want to utilize the ode15s function to solve a system of coupled differential ...

6 maanden ago | 0 answers | 0

Question

For Loop Significantly Increases Run Time of Script

Hello again! For this ode solver, I am trying to tell it to solve a system of equations for every time step in my for loop. The ...

6 maanden ago | 0 answers | 0

Question

How to pull specific data from solution set?

Hello, I am using this ODE solver and I am trying to figure out how I can reference the velocity components of the matrix of sol...

6 maanden ago | 1 answer | 0

Question

How to Use Symbolic Functions in For Loops

I would like to use a symbolic function in a for loop, however I spent hours reading the resources about symbolic functions and ...

7 maanden ago | 1 answer | 0

Question

How to orientate and specify geometry location in a 3D plot?

I have this script and I am plotting a magnetic field of a cylindrical magnet. I am trying to import a cylinder using the PDEs t...

9 maanden ago | 0 answers | 0

Question

Referencing Arbitrary Functions from other Script Files to Solve System of Equations

CODE UPDATED: I am re-asking this question and this time giving all the context so that those reading this will better unders...

9 maanden ago | 1 answer | 0

Question

How do I create an arbitrary function that can be referenced in another script correctly?

I am trying to create an E-field of a sphere with a known radius and potential that has been induced on it. Here is the code I a...

9 maanden ago | 0 answers | 0

Question

Solving a System of ODEs

My Input: syms x(t) y(t) z(t) %Units of kg and seconds q = 1.60217662*(10^-19); B = 2; m_e = 1.60217662*(10*-31...

10 maanden ago | 1 answer | 0

Question

How can I fix "Not Enough Input Arguments" error in this Script?

Input: t = 0:pi/50:10*pi; x = (1/2)*(sin(2*t))+1; y = (1/2)*(cos(2*t))+1; z = 2*t; plot3(x,y,z,t,'r','LineWid...

10 maanden ago | 1 answer | 0