How to terminate any sub function's execution within the main function?

2 views (last 30 days)
Akash Pal
Akash Pal on 27 Jun 2022
Commented: Walter Roberson on 27 Jun 2022
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)
#some plot
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 .
Walter Roberson
Walter Roberson on 27 Jun 2022

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!