Bar plot for two matrices together

I have two matrices ww and si. I want to make a bar plot with this two. For each year (x-axis) I need to show 2 bars – one ww and one si. si need to be reversed, as si in negative y axis. So that flipping the si to show the same trends of the bars.

댓글 수: 2

bar(rand,'r')
hold on
bar(-rand,'b')
Joydeb Saha
Joydeb Saha 2023년 1월 18일
I want to make something like this. See the image attached. Attached the matrices also.

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephan
Stephan 2023년 1월 18일
편집: Stephan 2023년 1월 18일

0 개 추천

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2023년 1월 18일

편집:

2023년 1월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by