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!! ;-)
1366 Solvers
Circular Primes (based on Project Euler, problem 35)
142 Solvers
Calculate the probability that at least two people in a group share the same birthday.
61 Solvers
Sum the numbers on the main diagonal
454 Solvers
5161 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!