From: "Ender " <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab runtime error!
Date: Wed, 29 Sep 2010 16:47:20 +0000 (UTC)
Organization: Mississippi State University
Lines: 43
Message-ID: <i7vqio$or$>
References: <i7vpoh$7m7$>
Reply-To: "Ender " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1285778840 795 (29 Sep 2010 16:47:20 GMT)
NNTP-Posting-Date: Wed, 29 Sep 2010 16:47:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1035766
Xref: comp.soft-sys.matlab:674325

I have narrowed down the problem as to why I get this error, but I am still unsure how the error is caused.

I have an equation in the ode45 solver program that states;

% create variables to solve for a two-body motion equation
    syms E_cal

e = ELE(2);
M_o = ELE(6);

% solve the equation for the Eccentric Anomaly
        E_cal = solve(E_cal-e*sin(E_cal)-M_o,E_cal);
        % Convert to a number from a string variable
            E = subs(E_cal);
        % Convert to degrees (deg)
            E = radtodeg(E);

I would like to get a value for E. I pass over M, e from the preceding .m file However whenever MATLAB tries to solve for E_cal, I then get the error and MATLAB shuts down. If there is an easier way to solve for E (in degrees) then how I have written the code please tell me. If not can someone tell me why and how to fix the problem.


"Ender " <> wrote in message <i7vpoh$7m7$>...
> Could someone tell me what this error means and how do I fix it?
> I am running a Matlab program with 3  .m files. I am using the ode45 solver twice in the program. The second time I use the ode45 solver, the solver runs then I get an error that says
> Fatal internal error. [c0000094]
> Runtime Error!
> R6025
> -pure virtual function call
> Then MATLAb shuts down.
> How do I fix this error and finish the program run.
> Thanks,
> --Ender--