ploting data excel to matlab
1 次查看(过去 30 天)
显示 更早的评论
hello, please help
i have problem to plot a data excel to matlab. how i can fix it?
6 个评论
Jon
2020-2-20
Please explain what problem you are experiencing when you try to run your code. Also, if you select your code and the click the code button on the MATLAB Answers toolbar it will format nicely.
采纳的回答
darova
2020-2-20
I corrected your script. Try now
[filename,path] = uigetfile('.xlsx')
dataExcel = xlsread(fullfile(path,filename))
penghasilan = dataExcel(:,4); % no need: 1:size(dataExcel,1)
skor = dataExcel(:,5);
plot(penghasilan,skor)
4 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!