Matlab read/write excel
Show older comments

this is the code:
entrants = get(handles.entrantspopup, 'Value');
switch entrants
case 1
cla;
fname = {'*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*','*'};
x = [1:21]; y = [0,30,680,7,55,7,88,9,53,34,56,21,45,66,44,22,1,34,45,56,32];
bar (x,y)
set(gca, 'XTick', 1:length(fname),'XTickLabel',fname);
xtickangle(90)
title('********')
instead of typing the excel numbers individually : "y = [0,30,680,7,55,7,88,9,53,34,56,21,45,66,44,22,1,34,45,56,32];"
how do i get excel to read and write these from the spreadsheet, i just want the y values.

1 Comment
Omar Amodi
on 28 Nov 2018
Answers (2)
Luna
on 28 Nov 2018
0 votes
Omar Amodi
on 28 Nov 2018
0 votes
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!