Question: Someone please help me make this code work on matlab. All i am trying to do is make a histogram with the Max y value
\( \begin{array}{ll}l \\ 1 & \text { lab4bode.m } \times \text { optics.m } \times \text { untitled3.m } \times \text { untitled4.m } \times \text { untitled5.m } \\ 2 & \text { scale_factor }=1.5 ; \\ 3 & \text { B }=A * \text { scale_factor; } \\ 4 & {[h, \sim]=\text { imhist }(B) ;} \\ 5 & [\text { counts, edges] }=\text { histcounts }(B, \text { min(edges) }) \text { max(edges })) ; \\ 6 & \text { normalized_counts }=\text { counts / sum(counts); } \\ 7 & \text { max_val }=4 ; \\ 8 & \text { bar(edges }(1 ; \text { ind-1), normalized_counts * max_val, 'hist' }) ; \\ 9 & \end{array} \)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
