Matlab read/write excel

조회 수: 18 (최근 30일)
Omar Amodi
Omar Amodi 2018년 11월 28일
답변: Omar Amodi 2018년 11월 28일
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.
12.png
  댓글 수: 1
Omar Amodi
Omar Amodi 2018년 11월 28일
also how would i do this data--------------
I want this data in: Sheet2, Teaching institution type (AP), Category (Asian or Asian British)
I want to present "the percentage for that institution type".
create1.png

댓글을 달려면 로그인하십시오.

답변 (2개)

Luna
Luna 2018년 11월 28일
Hi,
check the link xlsread below. also look at the xlswrite.

Omar Amodi
Omar Amodi 2018년 11월 28일
bump

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by