I am always a little bit paranoid.
Now, I want to know what my co-workers do with my MATLAB when I am not here.
Find (it is not necessary to guess) functions used just before the call to the function and return a cell with the names.
For example:
a=magic(10);
b=rot90(a);
f=find_last_fcn()
assert(ismember('magic',f)) assert(ismember('rot90',f))Can I trust you ?
Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers11
Suggested Problems
-
Program an exclusive OR operation with logical operators
749 Solvers
-
Find the sum of the elements in the "second" diagonal
1202 Solvers
-
313 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1256 Solvers
-
643 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Harder than initially envisaged.
And that's why I always form a solution to the problem before posting...it's saved me quite a few times. By any means, I can get com.mathworks.mlservices.MLCommandHistoryServices.getSessionHistory to work on my local machine, but it doesn't seem to work on the Cody servers.
not sure how to get the first test right without some sort of cheat (there are a number of matlab functions that have been called before the testsuite starts). And just a side note, com.mathworks.mlservices.etc works just fine on Cody but the functions run as part of the testsuite are not expected to be there since they are not being typed in the command window
I removed the first test. Everything is under control now (and more easy) !
For information, the first test was assert(isequal(find_last_fcn(),{}))
Just fire up MATLAB on a VAX system after starting a photo file if you're THAT paranoid. :-)