Determine if file is locked
Check for Locked File
Verify that the
output.pdf file is locked.
ans = logical 0
filename — Name of file to test
character vector | string scalar
Name or full path of the file to test, specified as a character vector or string scalar.
tf — Status of the file
Status of the file, returned as
If the file is locked by another process,
true is returned. It the
file is not locked,
false is returned.
Introduced in R2018b