Export data to text file
이전 댓글 표시
I have the following information From the code I created
Beam number = 2
Weight = 56.01
Maximum stress = 169.34
I want export the above that to a text file called BestBeam.txt
It should look like this
Beam Data: 2
Weight: 56.01 Kg
Maximum Stress: 169.43 MPa
Can someone tell help me
댓글 수: 7
Rik
2019년 5월 6일
What have you tried so far? It shouldn't be too hard to find an example of how to write a file.
LINDO MTSWENI
2019년 5월 6일
Walter Roberson
2019년 5월 6일
fopen fprintf fclose
Walter Roberson
2019년 5월 6일
It is possible to write your desired output with dlmwrite(), but it is not intended to do that and the method for tricking it into doing so are harder to implement and less understandable than simply using fopen() / fprintf() / fclose()
LINDO MTSWENI
2019년 5월 6일
Walter Roberson
2019년 5월 6일
Where is your cell array that contains the unit to use for each element?
LINDO MTSWENI
2019년 5월 6일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!