Decay calculations

Questions and discussion about applications, input, output and general user topics
Post Reply
ianyounker
Posts: 23
Joined: Thu Jan 17, 2013 10:52 pm
Security question 1: No
Security question 2: 92

Decay calculations

Post by ianyounker » Thu May 29, 2014 5:58 pm

I am running calculations for activity and decay heat for 10 years after life in the reactor. I have an issue with my matlab results file. I cannot run the file in matlab because the value for rea_sampling_eff is -NAN. How can I eliminate NAN and have a value so matlab can run and I can gather my data?

Thanks

User avatar
Jaakko Leppänen
Site Admin
Posts: 2202
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Decay calculations

Post by Jaakko Leppänen » Thu May 29, 2014 6:14 pm

The easiest way is to open the file in a text editor and replace NAN's with zeros. Or you can try using the Linux command line tool: replace "NAN" "0.0" -- file_res.m
- Jaakko

jesse.johns
Posts: 114
Joined: Wed Apr 20, 2011 5:19 am

Re: Decay calculations

Post by jesse.johns » Thu Jul 10, 2014 5:52 pm

Another option is simply to define a variable within MATLAB:

NAN = 0;

and then load the results file. There is no need to edit results prior to import.

Post Reply