Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isequal (FevalFuture)

True if futures have same ID

Syntax

eq = isequal(F1,F2)

Description

eq = isequal(F1,F2) returns logical 1 (true) if futures F1 and F2 have the same ID property value, or logical 0 (false) otherwise.

Examples

Compare future object in workspace to queued future object.

p = parpool('local',2);
q = p.FevalQueue;
Fp = parfevalOnAll(p,@pause,0,30);
F1 = parfeval(p,@magic,1,10);
F2 = q.QueuedFutures;
isequal(F1,F2)
1

Was this topic helpful?