How to write an output text file in a tabular form in matlab??

5 vues (au cours des 30 derniers jours)
Virajan Verma
Virajan Verma le 1 Oct 2018
X=0.22, 0.3456,0.5567 Y=0.1123,1.9823,1.2345 Z=0.34,0.332,0.897

Réponses (2)

ANKUR KUMAR
ANKUR KUMAR le 1 Oct 2018
X= [0.22, 0.3456,0.5567]' ;
Y= [0.1123,1.9823,1.2345]' ;
Z= [0.34,0.332,0.897]' ;
AA=[X Y Z]
B=arrayfun(@(x) num2str(x) , AA,'uni',0)
BB=[{'array1','array2','array3'};B]
dlmcell('test.txt',BB)

KSSV
KSSV le 1 Oct 2018
X= [0.22, 0.3456,0.5567]' ;
Y= [0.1123,1.9823,1.2345]' ;
Z= [0.34,0.332,0.897]' ;
T = table(X,Y,Z)
  2 commentaires
Virajan Verma
Virajan Verma le 1 Oct 2018
text file?? Not in command window
KSSV
KSSV le 1 Oct 2018
Write that using writetable

Connectez-vous pour commenter.

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by