Problem 55420. Power Outages Histogram
Solution Stats
Problem Comments
-
6 Comments
The function is not executed for any of the tests.
Execute scratch pad:
T = readtable("outages.csv","TextType","string");
g__= plotOutages(T);
We must use the scratch pad, as said by David Hill, and return the histogram with gcf(). This should probably be added to the problem's description.
i am so confused, i dont think any of the test cases actually execute the function ?
@March 7th, the part of the test suite where the function is called is before the first test and so isn't visible.
Dear all
"assert" had been defined like below;
assert(isequal(g__.Children.Children.Type,'categoricalhistogram'))
If you want to pass the tests, you should define you function like below
wrong function:
function f = plotOutages(T)
end
Right function
function g__ = plotOutages(T)
end
Solution Comments
Show commentsProblem Recent Solvers197
Suggested Problems
-
Remove any row in which a NaN appears
8694 Solvers
-
Sort a list of complex numbers based on far they are from the origin.
5729 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1229 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2067 Solvers
-
Split Even Number Into Two Primes
204 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!