Some numerical inaccuracies with the test case and the expected output!
float tolerance needed ?
I'm off by O(10*eps) from the test suite, can you possibly test isequal(single(fft(x)),single(y))
I don't know why regexp miss this ...
Very Nice solution!!
Ok! a little hack on this... ;-)
Jose', you've inspired me to make this a bit of a hacking competition. I'll update the test suite to address issues found, but will reward the first to find issues like you have by sending MathWorks swag (maybe a t-shirt or coffee mug, you'll have to try and see :-) Jose', yours is on the way.
I became my t-shirt and my basecap with the post for 3 days... THANK YOU!! ;-)
Project Euler: Problem 2, Sum of even Fibonacci
Calculate the Hamming distance between two strings
Community Problem 500!
Moving average (variable kernel length)
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