How to export script to text file ?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello please help me to export my code into .txt extension. Is it possible ?
i already tried this code, but it failed
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 16 Mär. 2024
export() does not support writing data into files.
a = "good";
b = "morning";
c = "babynumber";
d = 1:10;
%Simplified/vectorized method
str = a + b + c + string(d.')
%write the variable into a txt file
%change the file name as per your liking
writematrix(str, 'Filename.txt')
%checking the contents of the file
type('Filename.txt')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!