MATLAB: How to load excel columns under same variable file

bar3data import

I have an excel file it has 2 columns of data. When I import this file to Matlab, each column shown as a different file. (ex: VarName1 and VarName2) I want to show them under the same file. I want to plot them to Bar3 plot. When they are separate, I can't show them on the same plot. I want to plot a graph like this example http://www.mathworks.com/help/matlab/ref/bar3.html

Best Answer

One possible solution is to just concatenate the two variables into one array:
VarName1 = rand(7,1);
VarName2 = rand(7,1);
figure
bar3([Varname1; Varname2])
Related Question