side by side multiply histogram in matlab

后端 未结 2 1197
心在旅途
心在旅途 2021-02-03 12:06

I would like to produce a plot like the following in matlab.

\"enter

Or may be som

2条回答
  •  广开言路
    2021-02-03 12:56

    Doesn't hist already do the first one?

    From help hist:

    N = HIST(Y) bins the elements of Y into 10 equally spaced containers
    and returns the number of elements in each container.  If Y is a
    matrix, HIST works down the columns.
    

    For the second look at help bar

提交回复
热议问题