ploting data excel to matlab

1 vue (au cours des 30 derniers jours)
joni nababan
joni nababan le 20 Fév 2020
Commenté : Adam le 24 Fév 2020
hello, please help
i have problem to plot a data excel to matlab. how i can fix it?
  6 commentaires
Jon
Jon le 20 Fév 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 le 24 Fév 2020
my problem is to make a graph of the data that is in excel

Connectez-vous pour commenter.

Réponse acceptée

darova
darova le 20 Fév 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);
plot(penghasilan,skor)
  4 commentaires
joni nababan
joni nababan le 24 Fév 2020
yes
Adam
Adam le 24 Fév 2020
doc colon

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by