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

조회 수: 4 (최근 30일)
Akash Pal
Akash Pal 2022년 6월 27일
댓글: Walter Roberson 2022년 6월 27일
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
Akash Pal
Akash Pal 2022년 6월 27일
the subfunctions are plotting the graph .
Walter Roberson
Walter Roberson 2022년 6월 27일
https://www.mathworks.com/help/parallel-computing/parallel.pool.dataqueue.html

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by