-
4 Comments
Maybe this test doesn't check XData so "1" is valid for the solution
assert(isequal([h.YData],[m, y]), 'Check plotted data')
Nice code
The leading solution doesn't really plot the red asterisk on the exact location of where the minimum value of y is for the corresponding value of t...the plot results of test suites don't look like the requested output plot that is being asked for. It's kind of a lazy answer just to get the smallest size so it can be flagged as the "leading solution"
Suggested Problems
-
Select every other element of a vector
33901 Solvers
-
Given two arrays, find the maximum overlap
1583 Solvers
-
1434 Solvers
-
Change the sign of even index entries of the reversed vector
574 Solvers
-
797 Solvers
More from this Author13
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!