Where do you find all these informations ?
dbstack('-completenames') will tell you the function call stack, then you can just read the appropriate files to see what is in them...
You should write a book with all your Matlab experience (seriously).
Do you suggest it is possible to modify directly the testsuite in the function ?
well, not exactly. When myfunction() is being evaluated it is being called by the testsuite code (and that happens inside a evalc command inside the evaluateCode() subfunction) so it is already too late to change the testsuite itself. You can do two things: a) either assume the the call to 'evaluateCode()' is going to fail, and see if you can do something about it (this is the simpler way to solve this problem); or b) try to modify the testsuite *before* myfunction() is being evaluated (that is the solution needed for the next problem -'singularity 2.0 (really hard)'- in this series
ps. and thanks for the compliment :)
Correct solution with a fail !
All your base are belong to us
Who knows the last digit of pi?
Numbers with prime factors 2, 3 and 5.
Cody Computer Part 5 - Guess the Name of Cody Computer
Free passes for everyone!
the fly, the train, the second train, and their Zeno's paradox
feeling VERY lucky?
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
German tank problem
fly fly away
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office