Path: news.mathworks.com!not-for-mail
From: "Ender " <jr147@msstate.edu>
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$1@fred.mathworks.com>
References: <i7vpoh$7m7$1@fred.mathworks.com>
Reply-To: "Ender " <jr147@msstate.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1285778840 795 172.30.248.35 (29 Sep 2010 16:47:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 29 Sep 2010 16:47:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1035766
Xref: news.mathworks.com 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.

Thanks,
--Ender--


"Ender " <jr147@msstate.edu> wrote in message <i7vpoh$7m7$1@fred.mathworks.com>...
> 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--