How can i import mass and stiffness matrices (MatK and MatK .TXT) to Matlab ?
7 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Image Analyst
on 28 Jan 2021
Try importdata() or readmatrix(). Attach matm.txt if you still have trouble.
6 Comments
munachi
on 26 Oct 2024
@Image Analyst Please can explain how to use the attach matm.txt in this reference.
importdata(attach 'matlab.txt'); % Please just write it out it. Thank you.
Image Analyst
on 26 Oct 2024
data = import('matm.txt');
For more info:
help importdata
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!