First clear what you are trying to do with MATLAB ? and what you suppose to do in ANSYS ? What are your input and output DATA for MATLAB and ANSYS APDL.
Yes you can give input data to ANSYS like connectivity matrix (Mesh), co-ordinates (Nodes information), Boundary conditions,etc
I need to extract x,y and z co-ordinates from a MATLAB program and give them as inputs for plotting keypoints in ANSYS APDL and convert it into volume.