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 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
231 box on ;<br />
232 g r i d on ;<br />
233 x l a b e l ( ’ t ’ ) ;<br />
234 y l a b e l ( ’ | Step s i z e | ’ ) ;<br />
235<br />
236 pl = pl +1;<br />
237 subplot ( npl , 1 , pl )<br />
238 p l o t ( t , q , ’− ’ ) ;<br />
239 i f strcmp ( xaxis , ’ l o g ’ )<br />
240 s e t ( gca , ’ XScale ’ , ’ l o g ’ ) ;<br />
241 end<br />
242 hold on ;<br />
243 box on ;<br />
244 g r i d on ;<br />
245 x l a b e l ( ’ t ’ ) ;<br />
246 y l a b e l ( ’ Order ’ ) ;<br />
247 end<br />
248<br />
249 % Counters<br />
250 i f cntr<br />
251 pl = pl +1;<br />
252 subplot ( npl , 1 , pl )<br />
253 semilogy ( t , nst , ’ k− ’ ) ;<br />
254 hold on ;<br />
255 semilogy ( t , nfe , ’b− ’ ) ;<br />
256 semilogy ( t , nni , ’ r− ’ ) ;<br />
257 semilogy ( t , netf , ’ g− ’ ) ;<br />
258 semilogy ( t , ncfn , ’ c− ’ ) ;<br />
259 i f strcmp ( xaxis , ’ l o g ’ )<br />
260 s e t ( gca , ’ XScale ’ , ’ l o g ’ ) ;<br />
261 end<br />
262 box on ;<br />
263 g r i d on ;<br />
264 x l a b e l ( ’ t ’ ) ;<br />
265 y l a b e l ( ’ Counters ’ ) ;<br />
266 end<br />
267<br />
268 % S o l u t i o n components<br />
269 i f s o l<br />
270 f i g u r e ( hf2 ) ;<br />
271 map = colormap ;<br />
272 n c o l s = s i z e (map , 1 ) ;<br />
273 hold on ;<br />
274 f o r i = 1 :N<br />
275 hp = p l o t ( t , y ( i , : ) , ’− ’ ) ;<br />
276 i c = 1+( i −1)∗ f l o o r ( n c o l s /N) ;<br />
277 s e t ( hp , ’ Color ’ ,map( ic , : ) ) ;<br />
278 end<br />
279 i f strcmp ( xaxis , ’ l o g ’ )<br />
280 s e t ( gca , ’ XScale ’ , ’ l o g ’ ) ;<br />
281 end<br />
282 box on ;<br />
283 g r i d on ;<br />
284 x l a b e l ( ’ t ’ ) ;<br />
21