My solution passes first and last tests, but fails others, could you take a look, please?
No problem, Svyatoslav, I will take a look tomorrow.
Hi, Svyatoslav, I've figured out what the problem was. It appears there is a small error < 1e-10 between our interpolation methods. This error wouldn't matter regularly, but since we are doing gamma correction, that error gets magnified. To fix this, I've changed the problem description to request that all interpolations be rounded to 4 decimal places. This seems to resolve the issue (since there will be no error to be magnified by the gamma correction).
If you round both results from linspace to 4 decimal places, this solution will pass the test suite.
Helped, thank you!
No problem. And congratulations :)
Number of 1s in a binary string
"Cody" * 5 == "CodyCodyCodyCodyCody"
Write c^3 as sum of two squares a^2+b^2
Find Logic 6
Find Logic 12
Roots, Bloody Roots: part 1/2
Paint it black!
How many bytes an image requires from RAM?
How many bytes an audio requires from RAM?
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