Helping to save matrix in txt file
8 views (last 30 days)
Show older comments
Hi, i need some help.
I have a matrix calle NOS and it looks like this:
1 0 0 2.33356978125e-009 -1.59876343136e-009
2 3 3 5 3.65137983322323
Another one called BARRAS:
1 0 3 5 50.69 147.656878779
2 3 5 1 456.12 123.123214234
Variable NNOS = 2
And i want to save these matrix into a txt file but i need to put more information on it. My txt file should look like this:
DATE: 01/07/2011
NAME: My Name
Example: Example_number_1
Dados: Quantidade de nos: 2 (the number 2 comes from the value in variable NNOS)
No Inci Incj v rot (titles of each column)
1 0 0 2.33356978125e-009 -1.59876343136e-009
2 3 3 5 3.65137983322323
Barra i j L V M (titles of each column)
1 0 3 5 50.69 147.656878779
2 3 5 1 456.12 123.123214234
Please, need help to do this ! Thanks a lot !
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Low-Level File I/O 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!