Problem 55420. Power Outages Histogram
Create a function that takes power outage data as an input and creates a histogram of the number of outages as a function of Region. Note that the Region column of the power outage table contains a cell array of character vectors.
Rotate the x-axis tick labels by 30 degrees and label the y-axis with "Number of Outages".
Your function should return the figure handle as output.
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Khoi Nguyen
on 2 Oct 2023
i am so confused, i dont think any of the test cases actually execute the function ?
Christian Schröder
on 3 Oct 2023
@March 7th, the part of the test suite where the function is called is before the first test and so isn't visible.
erhantiryaki
on 2 Jan 2024
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 Solvers113
Suggested Problems
-
2332 Solvers
-
5482 Solvers
-
574 Solvers
-
190 Solvers
-
Air Density from Temperature and Pressure
154 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!