Problem 49652. Find the spot diameter from the intensity distribution matrix of single spot (circle)
16.0% Correct | 84.0% Incorrect
Last Solution submitted on Nov 20, 2022
Tim on 30 Dec 2020
In your example, the distance from 100 to 13.53 is sqrt(2), so the diameter should be 2*sqrt(2). The test suite values also do not seem to make sense.
Sibi on 5 Jan 2021
The example had an error, now it's fixed.
Dyuman Joshi on 13 Aug 2021
Test 7, max(x(:))=152; 13.5% of 152 = 20.52, which is not present in the matrix. Same goes for the rest of the cases.
I feel like I am missing something.
Solution CommentsShow comments
Problem Recent Solvers3
Find the longest sequence of 1's in a binary sequence.
Find a subset that divides the vector into equal halves
Generate N equally spaced intervals between -L and L
Determine if input is a Narcissistic number
More from this Author33
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!