Prev: question regarding nested function structure and fsolve
Next: Manipulation of robot with joystick in Simmechanics
From: Miroslav Balda on 17 Nov 2009 16:25 "Miroslav Balda" <miroslav.nospam(a)balda.cz> wrote in message <hdule1$rkp$1(a)fred.mathworks.com>... > "Rachel Laughs" <remove.thisrachellaughs(a)gmail.com> wrote in message <hdujjo$224$1(a)fred.mathworks.com>... : SNIP : > > 3. the two numbers following the final underscore : > Hi, > the following code solves your task: > [filename,pth] = uigetfile(......); % The path is in pth > I = findstr('_',filename); > file = filename(1:I(end)); Sorry, I have missed to answer the third question: numb = filename(I+1:I+2); Mira |