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. :-)
Get the area codes from a list of phone numbers
532 Solvers
284 Solvers
Project Euler: Problem 3, Largest prime factor
381 Solvers
Return unique values without sorting
589 Solvers
Mersenne Primes vs. All Primes
166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!