What is code for opening excel document in Matlab GUI for macbook?

Answers (2)

You use the same xlsread (or readtable which calls xlsread internally) as you'd do on Windows.
However, because you're on a MAC, it will use the basic mode for reading the file. There are some limitations associated which you can't avoid.
Thanks... If I want to read excel document after button was clicked, what is the code?

1 Comment

In the Callback for the uicontrol('Style', 'button') you would have
[num, txt, raw] = xlsread('TheFile.xlsx');
Note: if you need to be able to write .xls files instead of .xlsx then see the File Exchange contribution xlwrite()

Sign in to comment.

Tags

Asked:

BB
on 7 Jul 2016

Commented:

on 10 Jul 2016

Community Treasure Hunt

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

Start Hunting!