MATLAB Answers

Problem in exporting vector with Matlab R2016a

1 view (last 30 days)
Elisabetta Biondi
Elisabetta Biondi on 19 Oct 2020
Edited: Ameer Hamza on 19 Oct 2020
Hi all,
I am finding problems in exporting a data (column) vector. I currently have Matlab R2016a and I have tried the following command to export into a txt file:
xlswrite ('vector.txt',x')
However, the output is made of onlu special characters, I copy a first part as an example:
ÐÏࡱá > þÿ w þÿÿÿ þÿÿÿ v ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ T8ÍÉ á °Á â \ p B °a À = œ ¯ ¼ = ÐH´#8 X@  " · Ú 1 Ü  C a l i b r i 1 Ü  C a l i b r i 1 Ü  C a l i b r i 1 Ü  C a l i b r i 1 Ü  C a l i b r i 1 Ü  C a l i b r i 1 Ü 4 ¼ C a l i b r i 1 Ü 4  C a l i b r i 1 Ü ¼ C a l i b r i 1 Ü >  C a l i b r i 1 Ü <  C a l i b r i 1 Ü ? ¼ C a l i b r i 1 Ü
 C a l i b r i 1 Ü  C a l i b r i 1 * h 6 
C a l i b r i L i g h t 1 , 6 ¼ C a l i b r i 1 6 ¼ C a l i b r i 1 Ü 6 ¼ C a l i b r i 1 Ü ¼ C a l i b r i 1 Ü 
Where is my mistake?
Thank you

  0 Comments

Sign in to comment.

Answers (1)

Ameer Hamza
Ameer Hamza on 19 Oct 2020
Edited: Ameer Hamza on 19 Oct 2020
xlswrite is used for writing to MS Excel files. Use dlmwrite()
dlmwrite('vector.txt', x')

Tags

Community Treasure Hunt

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

Start Hunting!