let a script run in other script with variable parameters
Mostrar comentarios más antiguos
I want to let a script (ex: project.m) run in other script (ex: main.m) with changing parameters.
It means, the parameters is set in the main.m script and the project.m is loaded from the main.m and runs in a for-loop with the defined parameters.
Thank you so much for your answer!
Best Regards,
Minyoung
2 comentarios
Abderrahim. B
el 4 de Jul. de 2022
Hi Minyoung ,
Correct me if i am mistaken .
- You have the script main.m that has the paramters
- and a seperate matlab script project.m
- then you are trying to call project.m in the main.m to loop on it .
Please clarify so we can provide you with answers!
Minyoung Hong
el 4 de Jul. de 2022
Respuesta aceptada
Más respuestas (1)
Jonas
el 4 de Jul. de 2022
1 voto
it really sounds like you actally should change your script to a fcuntion. Running a script giving paramters to it is exactly what a function is
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!