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
-
5 Comments
Show
2 older comments
David Hill
on 11 Oct 2022
The function is not executed for any of the tests.
David Hill
on 11 Oct 2022
Execute scratch pad:
T = readtable("outages.csv","TextType","string");
g__= plotOutages(T);
Rafael S.T. Vieira
on 31 Oct 2022
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.
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.
Solution Comments
Show commentsProblem Recent Solvers73
Suggested Problems
-
Return a list sorted by number of occurrences
2535 Solvers
-
830 Solvers
-
256 Solvers
-
433 Solvers
-
86 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!