My question is related to the code pasted.
In line 4 of the code Variable "Tools" has the string of Text that is extracted from the excel file but to set it as x-lables i had to list them out again. Could someone suggest me solution where i can use the variable with strings in my code to be used as lables and not individually listing them out.
Thanks
Sai
[filename,pathname] = uigetfile("*.xlsx");A = fullfile(pathname,filename);num = importdata(A);Tools = num.textdata(3:end,1);Prices = num.data(1:6,1);bar(Prices)set(gca,'xticklabel',{'Table Saw','BandSaw','Jointer','Planer','Dust Collector','Calipers'});
Best Answer