I want to stack a bar but it gives error
X as Y same lenght
i have a simple matrix,
A=[76 96 68 15 112 160]
bar(1,A(1,1),'c') hold on bar(2,A(1,2),'y')
till bar 6 with each own color, bar 7 should be total of them off them but stacked and with each of them with their representative color.
No products are associated with this question.
Here is one way:
A = [76 96 68 15 112 160];
A6 = nan(6,6); A6(1:7:36) = A;
A7 = [A6;A];
Play games and win prizes!Learn more