Helping to save matrix in txt file

1 view (last 30 days)
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 !

Accepted Answer

Paulo Silva
Paulo Silva on 2 Jul 2011
  1 Comment
rogerio
rogerio on 2 Jul 2011
Hummm...i'm having trouble to apply the in my example.

Sign in to comment.

More Answers (0)

Categories

Find more on Characters and Strings 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!