MATLAB Answers

ploting data excel to matlab

3 views (last 30 days)
joni nababan
joni nababan on 20 Feb 2020
Commented: Adam on 24 Feb 2020
hello, please help
i have problem to plot a data excel to matlab. how i can fix it?


Show 3 older comments
Adam on 20 Feb 2020
If you want help with a problem please put at least a little thought into the basics of asking a question! You had to be asked to post the code and you also haven't said what the problem is. People are not mind readers. If you have a problem you need help with the fastest way to get that is to give the people who would help you all the information available.
Jon on 20 Feb 2020
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.
joni nababan
joni nababan on 24 Feb 2020
my problem is to make a graph of the data that is in excel

Sign in to comment.

Accepted Answer

darova on 20 Feb 2020
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);


Show 1 older comment
darova on 24 Feb 2020
YOu mean colon (:)?

Sign in to comment.

More Answers (0)

Sign in to answer this question.