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!