필터 지우기
필터 지우기

please help me in plotting bar graph

조회 수: 5 (최근 30일)
Triveni
Triveni 2016년 8월 13일
댓글: the cyclist 2016년 8월 14일
y = [327 680 509 313 ; 456 565 442 369 ; 227 325 210 3597; 426 532 360 149; 540 848 755 864];
bar_handle = bar(y,'grouped');
%When i grouped 'y' it's going from 1 to 5, but i need to it's start from 2 to 6. or it's control manually.
and please help me reshaping the array too.
% y1(:,:,1) = [28, 38, 25, 32, 18];
% y1(:,:,2) = [38, 29, 21, 42, 19];
% y1(:,:,3) = [31, 27, 25, 22, 25];
% y1(:,:,4) = [18, 32, 25, 32, 26];
%y = [28, 38 31 18; 38, 29, 27,32;25, 21,25,25;18,19,25,26];
%Y = [y1(column1);Y1(column2)...]

채택된 답변

the cyclist
the cyclist 2016년 8월 13일
bar_handle = bar(2:6,y,'grouped');
  댓글 수: 2
Triveni
Triveni 2016년 8월 13일
please help me reshaping the array too..
the cyclist
the cyclist 2016년 8월 14일
I didn't understand that part of the question. I suggest you post a new one, with a bit more detail about what are trying to do.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by