matLAB Gui Query Excel
Mostra commenti meno recenti
filename = 'HE_Data.xlsx';
sheet = 1;
xlRange = 'H10:AB10';
num = xlsread(filename,sheet,xlRange,'basic');
fname = {'Agriculture and related subjects','Architecture Building and Planning','Biological Sciences','Business and Administrative studies','Computer Science','Creative Arts and Design','Education','Engineering and Technology','Geographical Studies','Historical and Philosophical studies','Initial Teacher Training','Languages','Law','Mass Communications and Documentation','Mathematical Sciences','Medicine and Dentistry','Social Studies','Physical Sciences','Subjects allied to Medicine','Veterinary Sciences','Combined'};
x = 1:21; y = (num);
bar(x,y)
set(gca, 'XTick', 1:length(fname),'XTickLabel',fname);
xtickangle(90)
title('Aston University - Entrants in Each Field of Study')
6 Commenti
Image Analyst
il 29 Nov 2018
Try this link
John Smith
il 29 Nov 2018
Modificato: Guillaume
il 29 Nov 2018
Geoff Hayes
il 29 Nov 2018
John - what is the error that you are receiving? Or is it the error that your bar graph looks like the above? What should it look like? What can you tell us about the
num = xlsread(filename,sheet,xlRange,'basic');
data?
John Smith
il 29 Nov 2018
Modificato: John Smith
il 29 Nov 2018
Geoff Hayes
il 29 Nov 2018
so it should be similar to the above data, but what are you really reading in?
John Smith
il 30 Nov 2018
Modificato: John Smith
il 30 Nov 2018
Risposte (0)
Categorie
Scopri di più su Text Data Preparation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

