I am able to extract the mass and stiffness matrices using the following codes in APDL:
*SMAT, MatK, D, import, full, file.full, stiff
*SMAT, MatM, D, import, full, 2d_beam.full, mass
*export, MatK, mmf, matkMMF.txt
*export, MatM, mmf, matMMMF.txt
I then read them in MATLAB as two full...