sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...
sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...
sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
447 end<br />
448 f p r i n t f ( ’−−−−−\n ’ ) ;<br />
449<br />
450 %−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />
451<br />
452 f u n c t i o n [ ] = t e x t f i n a l (n , s t a t s , cntr , t , h , q , nst , nfe , nni , netf , ncfn )<br />
453<br />
454 f o r i = 1 : n−1<br />
455 i f s t a t s<br />
456 f p r i n t f ( ’ %8.3 e %12.6 e %1d | ’ , t ( i ) , h ( i ) , q ( i ) ) ;<br />
457 end<br />
458 i f cntr<br />
459 f p r i n t f ( ’%5d %5d %5d %5d %5d\n ’ , nst ( i ) , nfe ( i ) , nni ( i ) , n e t f ( i ) , ncfn ( i ) ) ;<br />
460 e l s e<br />
461 f p r i n t f ( ’ \n ’ ) ;<br />
462 end<br />
463 end<br />
464 f p r i n t f ( ’−−−−−\n ’ ) ;<br />
25