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.

H5L.exists

Determine if link exists

Syntax

bool = H5L.exists(loc_id,name,lapl_id)

Description

bool = H5L.exists(loc_id,name,lapl_id) checks if a link specified by the pairing of an object id and name exists within a group. lapl_id is a link access property list identifier.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/g1/g1.2/g1.2.1');
if H5L.exists(gid,'slink','H5P_DEFAULT')
    fprintf('link exists\n');
else
    fprintf('link does not exist\n');
end
Was this topic helpful?