write in text file

2 views (last 30 days)
Sharen H
Sharen H on 6 Nov 2012
i have to write a cell which has both numbers and strings in to a text file if i use %s the numeric values are not written properly. Can any one help Thanks in advance

Accepted Answer

Wayne King
Wayne King on 6 Nov 2012
You can use ischar() to query which elements are strings and write those properly.
Sharen H
Sharen H on 6 Nov 2012
Thanks a lot .. Walter Roberson ...Thank u so much

Sign in to comment.

More Answers (0)


Find more on Characters and Strings 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!