13.01.2013 Views

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 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

269 %RPI STR F u l l LAM SSI RPI s t r i n g given i n i t i a l l e t t e r ( s )<br />

270 %<br />

271 % r p i = r p i s t r ( c )<br />

272 %<br />

273 % c i n i t i a l char ( s ) o f r p i name : t , l , u , s<br />

274 % r p i f u l l r p i name , one o f : tcp , lamd , usysv , sysv<br />

275 % Use ’ ’ i f c doesn ’ t match <strong>to</strong> any supported r p i<br />

276 %<br />

277<br />

278 f l a g = nargin˜=1 | | isempty ( c ) | | ˜ i s c h a r ( c ) ;<br />

279 i f f l a g<br />

280 return<br />

281 end<br />

282<br />

283 c=lower ( c ( 1 ) ) ;<br />

284 r p i s ={ ’ tcp ’ , ’ lamd ’ , ’ usysv ’ , ’ sysv ’ , ’ none ’ } ; % ’ none ’ i s s e n t i n e l<br />

285<br />

286 f o r i =1: l e n g t h ( r p i s )<br />

287 i f r p i s { i }(1)==c<br />

288 break<br />

289 end<br />

290 end<br />

291<br />

292 i f i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!