tf = isdlarray(X) returns
logical 1 (true) if X is a
dlarray, and logical 0 (false)
otherwise. You can use this function with an if statement to avoid
executing code that expects dlarray input.
The isdlarray function
fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.