How to call mlapp with input arguments (In the startupfunction) from another m script ?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ayman Soultana
il 27 Giu 2022
Risposto: Saksham Gupta
il 27 Giu 2022
Hello,
I created an mlapp in the app designer and i gave it an input argument. Now I want to start the mlapp in another script. I succeded in this by just writing the name of the script in the editor but i dont know how to include the input argument that is needed for the mlapp to properly function. Is there anyway to do this? When I wrote the name of mlapp in the editor with input argument (For example like this mlapp1(pathToSomething)) it doesnt start and when I stop the editor multiple instances of the app start appearing and i need to shut matlab down to stop it. But when i just write the name of the mlapp without the input, this does not happen. So is there anyway to do this or am I doing something wrong here.
0 Commenti
Risposta accettata
Saksham Gupta
il 27 Giu 2022
As per my understanding, you are unable to pass 'path' as an input argument in your mlapp.
I am using R2022a and I am able to pass a path as an input argument perfectly to my mlapp.
My code is as following:
app1("C:\Users\sakshamg ")
You may please specify the exact path which you are sending and if possible, do share your code so that I can help more.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!