How to Plot data in excel sheet using MATLAB ?
显示 更早的评论
OUTPUT I WANT

I want this chart using matlab...!!
xlswritefig function not allowed ..!!
3 个评论
Rik
2021-11-15
Instead of flagging your question as unclear, why don't you improve it by editing it?
Divyesh pandav
2021-11-16
Rik
2021-11-16
Flags are used to attract the attention of site administrators. Please use comments to clarify what you mean and how that differs from the suggested solution.
采纳的回答
更多回答(1 个)
KSSV
2021-11-15
Your excel file has no much data. You can read the data from excel file into workspace using readtable.
T = readtable('test.xlsx') ;
You can use the table to plot what you want.,
8 个评论
Divyesh pandav
2021-11-16
Divyesh pandav
2021-11-16
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/799574/test.xlsx') ;
A = table2array(T(2:end,2:end)) ;
l = T.(1) ;
bar(A)
xticklabels(l)
Divyesh pandav
2021-11-16
KSSV
2021-11-16
Solution is already given.
Divyesh pandav
2021-11-16
Rik
2021-11-16
So you want to use Matlab to create a bar chart in your excel file? Why not do that in excel directly?
Divyesh pandav
2021-11-16
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

