9 views (last 30 days)
Jan on 2 Aug 2011
As Sean and Jiang I do not think that this is useful. But if you are sure that you need it:
i = 1;
dbstop(FuncName, sprintf('%d', i));
i = i + 1;
Sean de Wolski on 2 Aug 2011
Why not just set one on the first line and step through it?
Fangjun Jiang on 2 Aug 2011
Why do you need that? You can debug by running code line by line (pressing F10).