How to terminate any sub function's execution within the main function?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I am running a MATLAB function that time if I don’t want to wait for the any sub function result and I want to terminate the running of that sub function but at the same time my others sub function should give me the result and graph .
As a example :
function [………output………]= mainfun (input)
[…..output ….]=subfun1(input)
[…….output….]=subfun2(input)
#some plot
end
maybe for me my subfun2 is taking more time to give me the result that time I want to terminate this function after certain period of time and want to get the other functions result .
8 commentaires
Walter Roberson
le 27 Juin 2022
https://www.mathworks.com/help/parallel-computing/parallel.pool.dataqueue.html
Réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!