How to write matrix to text with comma separate but first column should be string
Mostra commenti meno recenti
i have a matrix with four columns. all values are numbers.I want to write it on text with comma separate row by row.but first column should be string after writing.how to do it?please help me. thanks! I used dlmwrite to write and Also I attached a text document with question
Risposte (1)
Ingrid
il 4 Set 2014
0 voti
You can use sprintf to specify the type of output you want to write (%s for strings and %f for floats) and num2str to convert your number of the first column to a string
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!