Clear Filters
Clear Filters

How can i import mass and stiffness matrices (MatK and MatK .TXT) to Matlab ?

6 views (last 30 days)
Hi every one, i'm very new in MATLAB, i extracted mass and stiffness matrices from ansys workbench text files, and i want to import them to MATLAB.
load matm.txt
Error using load
Unable to read file 'matm.txt'. Input must be a MAT-file or an ASCII file containing numeric
data with same number of columns in each row.

Answers (1)

Image Analyst
Image Analyst on 28 Jan 2021
Try importdata() or readmatrix(). Attach matm.txt if you still have trouble.
  4 Comments
Image Analyst
Image Analyst on 9 Feb 2021
OK, since you saw my last sentence where I asked you to attach matm.txt, and since you did not attach it, I will assume that you chose not to attach it because you got it figured out already and no longer need our help. So I'm glad that you got it figured out.

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!