bar x must be same length line 172

8 次查看(过去 30 天)
I have the following code for different variables. I have copy and pasted them and changed the string to get the different variables.
Variables:
C1608=11x1 categorical array
C1609=categorical (just 1)
TxxxxA, TxxxxM, TxxxxW are the variables and they are in a double. T1608 (A, M, and W) is a 11x1 double. T1609 is just a single double for each.
I am using the following to plot it
bar(C1608, [T1608A T1608M T1608W])
bar(C1609, [T1609A T1609M T1609W])
How can I get past this error? Everything before this is basically the same code with a different string to index.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by