How to write Output text file in Tabular format in matlab??

1 vue (au cours des 30 derniers jours)
Virajan Verma
Virajan Verma le 1 Oct 2018
Commenté : ANKUR KUMAR le 2 Oct 2018
X contains 61 decimal integers like 0.0123 0.9876 and so on. Y contains 61 decimal integers like 0.0123 0.9876 and so on. Z contains 61 decimal integers like 0.0123 0.9876 and so on. I want an output text file containing 3 columns-X,Y and Z. Please help.
  1 commentaire
ANKUR KUMAR
ANKUR KUMAR le 1 Oct 2018
@Virajan Verma Accept the answer if it helps you.

Connectez-vous pour commenter.

Réponses (1)

ANKUR KUMAR
ANKUR KUMAR le 1 Oct 2018
I am taking a random data to give you an example.
A=rand(1,61);
B=rand(1,61);
C=rand(1,61);
AA=[A' B' C']
dlmwrite('test.txt',AA)
  8 commentaires
ANKUR KUMAR
ANKUR KUMAR le 1 Oct 2018
Get dlmcell function from here
ANKUR KUMAR
ANKUR KUMAR le 2 Oct 2018
Accept the answer if it helps you.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by