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!!
hehehe
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
865 Solvers
Calculate the Hamming distance between two strings
179 Solvers
73 Solvers
Moving average (variable kernel length)
105 Solvers
16 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!