Export data to text file
Ältere Kommentare anzeigen
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 Kommentare
Rik
am 6 Mai 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
am 6 Mai 2019
Walter Roberson
am 6 Mai 2019
fopen fprintf fclose
Walter Roberson
am 6 Mai 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
am 6 Mai 2019
Walter Roberson
am 6 Mai 2019
Where is your cell array that contains the unit to use for each element?
LINDO MTSWENI
am 6 Mai 2019
Antworten (0)
Kategorien
Mehr zu Large Files and Big Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!