Determine if file is locked
filename— Name of file to test
Name or full path to file to test, specified as a string or character vector.
tf— Status of the file
Status of the file, returned as
false. If the file is locked by another process,
true is returned. It the file is not locked,
false is returned.
Verify that the
output.pdf file is locked.
ans = logical 1