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

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 of 4 for this image. Someone please help me make this code work on matlab. All i

\( \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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!