Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Matlab, Create a histogram for each of the class distributions {classOne, classTwo}. Plot each of the histograms on the same figure (use 100 bins).
- In Matlab, Create a histogram for each of the class distributions {classOne, classTwo}. Plot each of the histograms on the same figure (use 100 bins). The x and y axis should be labeled appropriately. There should be a title for the figure as well as a legend.
histogram(classOne,100)
xlabel ('x axis')
ylabel ('y axis')
legend ('x')
title('Class One');
(I got that part done^)
How do I do this part?
- Report the prior probability for classOne? (Hint: Number of classOne samples divided by all samples)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started