Helping to save matrix in txt file

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 !

 채택된 답변

Paulo Silva
Paulo Silva 2011년 7월 2일

0 개 추천

댓글 수: 1

rogerio
rogerio 2011년 7월 2일
Hummm...i'm having trouble to apply the in my example.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by