how to get an output from the command window into a text file?? plz answer ,its very necessary

2 Ansichten (letzte 30 Tage)
i have a set of coordinates which i got after processing an image ,now i want to those coordinates in form a text file to apply them as an input to another application,,,..

Akzeptierte Antwort

sixwwwwww
sixwwwwww am 13 Okt. 2013
Bearbeitet: sixwwwwww am 13 Okt. 2013
Dear Srinivas Sri, for example you have coordinates in the form of 'x' and 'y' array then you can write it in a text file using "dlmwrite" function like this:
x = 1:20;
y = 2:2:40;
M = [x' y'];
disp(M)
dlmwrite(filename, M, '\t')
  10 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by