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.
Input variable, specified as a workspace variable. X can be any data type.
Extended Capabilities
GPU Arrays Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
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.