How to display data without single quotes in matlab command window?
Show older comments
This is the code:
filename = 'Fixed.txt';
filepath = 'C:\Users\admin\Desktop\numberPlateExtraction';
file= fullfile(filepath, filename);
fid = fopen(file, 'rt');
fread(fid, 15, '*uchar');
data_cell = textscan(fid, '%s', 'CommentStyle' , {'File', '\t'},'CollectOutput',1);
fclose(fid);
data = data_cell{1};
Original output:
data =
'+91245XXXXXXX'
Required output:
data =
+91245XXXXXXX
[EDITED, Jan, Code formatted]
1 Comment
Jan
on 5 Mar 2018
To be exact: The posted code does not output anything at all. So please explain, how you create the output. I guess you mean the contents of data, but it is not clear, if it contains quotes or not.
Accepted Answer
More Answers (0)
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!