Prev: aviread problems...
Next: What happened?
From: Jeff Cen on 17 Feb 2010 19:40 Hi, Is there a quick way do execute script line by line in the matlab editor by key board? Suppose I prototyped 10 lines of matlab code and there are not in a function. I would like to step through them one by one and check the result for each line. Right now, I need to select each line, press F9, move to the next line, and repeat these three steps for the next line. It would be easier if there is some key stroke combinations like c-? so that one key stoke combination does the above three actions all together. Thanks Jeff
From: Nathan on 17 Feb 2010 19:55 On Feb 17, 4:40 pm, "Jeff Cen" <h...(a)andrew.cmu.edu> wrote: > Hi, > > Is there a quick way do execute script line by line in the matlab editor by key board? > > Suppose I prototyped 10 lines of matlab code and there are not in a function. I would like to step through them one by one and check the result for each line. Right now, I need to select each line, press F9, move to the next line, and repeat these three steps for the next line. It would be easier if there is some key stroke combinations like c-? so that one key stoke combination does the above three actions all together. > > Thanks > > Jeff How about do it as if you were debugging. dbstop in mfilename %This will start the debugger at the beginning of your mfile when you run your file %Press F10 to step through line-by-line. I hope this work out for you. It's the simplest thing I could think of. -Nathan
|
Pages: 1 Prev: aviread problems... Next: What happened? |