MATLAB: How to apply colors to bar chart. bar chart x=[10,20,30] b=[20,29,32] a=uisetcolor('select color'); bar(x,y,a); it shows input argument error. Best Answer See my attached demo. Related SolutionsMATLAB: How to write Continue Long Statements on Multiple Lines Use repmat to avoid manually typing all 160 of those ‘%q’ repeats! Try this: formatSpec = ['%f',repmat('%q',1,160), '%[^\n\r]']; MATLAB: Want to plot a matrix as a 3D histogram or bar chart. With a size of 128 by 1024, you might be better off using surf() than bar3(), or simply viewing it as an image instead of a 2.5-D rendering (a 3-D rendering of your 2-D array onto your 2-D flat screen monitor). Related QuestionChange Bar Graph Legend Color
Best Answer