Borrar filtros
Borrar filtros

Excel file reading in Matlab GUI

4 visualizaciones (últimos 30 días)
Huda M
Huda M el 9 de Mzo. de 2022
Respondida: Jaswanth el 29 de Sept. de 2023
Hello;
each time I run the following code. the program ask me to open Excel file each time.
how can I make the code run without asking me each time to open the excel file

Respuestas (1)

Jaswanth
Jaswanth el 29 de Sept. de 2023
Hi Huda M,
I understand that you don’t want the program to ask you to open Excel file every time you run the code.
However, in second line of your code, the ‘uigetfile’ function is prompting you to open code every time you run the code. You can replace ‘uigetfile’ function with ‘readtable’ function to resolve this issue.
For more information on this, please refer to the following resources:
  1. “readtable” function creates a table by reading column-oriented data from a text file, spreadsheet etc. Documentation for “readtable” function - https://in.mathworks.com/help/matlab/ref/readtable.html?searchHighlight=readtable&s_tid=srchtitle_support_results_1_readtable
  2. “uigetfile” opens a modal dialog box that lists files in the current folder. Documentation for “ uigetfile” function - https://in.mathworks.com/help/matlab/ref/uigetfile.html?searchHighlight=uigetfile&s_tid=srchtitle_support_results_1_uigetfile
Hope this Helps.

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by