How do I import an excel file into app designer?

42 Ansichten (letzte 30 Tage)
Forrest Wilson
Forrest Wilson am 6 Okt. 2022
I am using app designer to create an app that will take in a code name as an input and display a row from an excel file as the output. I have an m file that does this and works, but I have not been able to find a way to link app designer with matlab. I was hoping someone might have some guidance on how I can do this. Or knows where there are tutorials for this. The codename can be inputed by clicking the list, or by typing it in. Either way is fine.
  1 Kommentar
dpb
dpb am 6 Okt. 2022
Bearbeitet: dpb am 7 Okt. 2022
"... find a way to link app designer with matlab."
??? App Designer IS building a MATLAB application; you call your function (m-file) in the callback routine that is the callback from the dropdown component ValueChangedFcn.
There are quite a number of sample applications packaged with MATLAB; several of those use a dropdown and there's uidropdown documentation that has examples of creating and using one by itself to get the hang of it.
But, to clarify, there's nothing different inside App Designer/application code about using user-defined functions in m-files any different than using the same function(s) outside App Designer in MATLAB scripts or other functions. It only has to be on the path to be found just as in MATLAB; when you package the app it will be included in the dependencies list and it's source file will be packaged along with the app file and any data files.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sailesh Kalyanapu
Sailesh Kalyanapu am 11 Okt. 2022
I understand that you are using the MATLAB App Designer (to import data from excel in this scenario) and are looking for guidance/resources related to it.
You can refer to the below documentation/examples. These would act as a good starting point :

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by