开发者

matlab - graph plotting

开发者 https://www.devze.com 2023-03-02 00:23 出处:网络
I have two arrays to plot, in x axis : array a. In y axis array b (ones and zeros开发者_如何转开发)

I have two arrays to plot, in x axis : array a. In y axis array b (ones and zeros开发者_如何转开发)

I want to plot vertical lines when the values of array b =1 i.e

a=[23 12 76 43 21 90]
b=[1 0 1 1 0 1]


You may try bar plot.

a=[23 12 76 43 21 90];
b=[1 0 1 1 0 1];
bar(a,b)

matlab - graph plotting

0

精彩评论

暂无评论...
验证码 换一张
取 消