Export data to text file
Show older comments
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 Comments
Rik
on 6 May 2019
What have you tried so far? It shouldn't be too hard to find an example of how to write a file.
LINDO MTSWENI
on 6 May 2019
Walter Roberson
on 6 May 2019
fopen fprintf fclose
Walter Roberson
on 6 May 2019
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
on 6 May 2019
Walter Roberson
on 6 May 2019
Where is your cell array that contains the unit to use for each element?
LINDO MTSWENI
on 6 May 2019
Answers (0)
Categories
Find more on Large Files and Big Data 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!