How to include txt file on standalone app by app designer.
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jae-Hee Park
le 8 Oct 2021
Commenté : Jae-Hee Park
le 9 Oct 2021
Hi
I am making a app using by app designer which read txt file and display values.
I am using this code.
function Data = array(filepath)
arguments
filepath = '../textfile/text.txt';
end
Data = readmatrix(filepath);
end
But when I make a standalone app, I don't know how to include text.txt file.
please let me know how to include text.txt file on standalone app and how to read it.
0 commentaires
Réponse acceptée
Cris LaPierre
le 8 Oct 2021
I think you should be able to use the application compiler and include your text file in the 'Files your app needs in order to run' section. You can then write your app assuming the file will be in the current folder. You do not need to include a path to the file. You would just use the name.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!