does somebody understand why
diff( ‘test’ )
in my solution 19016 causes this error
Error: License checkout failed.
License Manager Error 0
For further information, refer to the FLEXnet Licensing documentation,
available at "www.flexerasoftware.com".
Troubleshoot this issue by visiting:
License path: firstname.lastname@example.org:email@example.com:/tmp/matlabpref/.matlab/R2011b_licenses:/opt/mlsedu/matlab/R2011b/licenses/license.dat:/opt/mlsedu/matlab/R2011b/licenses
FLEXnet Licensing error: 0,0.
it doesn’t in my local Matlab ( 2011a )
apparently it tries to call an overloaded diff ( probably from the symbolic toolbox ) for which it doesn’t have a license
@Martijn: I am not sure why that is happening but in the meantime using "diff(double('test'))" should work fine
fixed look-up table hack
sorry about the needed hack to match the test suite solutions, I have clarified the text and corrected the test suite so that now in cases of multiple optima your function may return any one of them.
nice exhaustive search
After some attempts, I reached also a kind of solution like this...
Project Euler: Problem 4, Palindromic numbers
Back to basics 15 - Benchmark
Back to basics 9 - Indexed References
Determine Whether an array is empty
Next Higher Power of B
Say something funny
feeling VERY lucky?
Smallest distance between a point and a rectangle
Knights and Knaves (part 3)
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