How to change methods access to public in App Designer
Mostra commenti meno recenti
Hello, I'm currrently creating an app in App Designer MATLAB. I'm trying to change the header names of a table that is being read in. There are 27 columns so my approach is to read in a MAT file with the header names. App Designer is making it difficult to load the file. I saw an example where the method was switched to public instead of private to make it accessible. How is this possible? The area is grayed out and I'm unsure how to switch it to public.
Risposte (1)
Cris LaPierre
il 29 Apr 2024
0 voti
To Answer your specific question, use the interface to create a public function.
See here: https://www.mathworks.com/help/matlab/creating_guis/code-and-call-app-functions-in-app-designer.html
However, I'd be surprised if you needed to do this to load a file. Can you share your current code for reading the file along with a sample file (copy/paste the code; use the paperclip icon to attach a sample file).
4 Commenti
Norma
il 29 Apr 2024
Cris LaPierre
il 29 Apr 2024
The error would suggest an issue with locating the mat file, not with reading it.
Make sure 'Headers.mat' is either in your current folder, or in a folder that has been added to your MATLAB path.
Norma
il 29 Apr 2024
Cris LaPierre
il 29 Apr 2024
Share the actual error message (all the red text).
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!