One way is to pass data by files on the OS and invoke your application through a MATLAB OS call. The bang operator (!) will invoke the OS and pass any command you place after it to the OS. FOr DOS you can also use dos( callAnsys() )
Read the help file on ! and dos.