フィルターのクリア

how to read text file,showing the same formatting as text file....like BOLD,ITALIC

6 ビュー (過去 30 日間)
madhvi arya
madhvi arya 2015 年 2 月 16 日
コメント済み: Stephen23 2015 年 2 月 16 日
i want to search headings from any text file

採用された回答

Stephen23
Stephen23 2015 年 2 月 16 日
編集済み: Stephen23 2015 年 2 月 16 日
According to most common definitions of text files , they do not contain any formatting meta-data such as bold or italic information, so what you are asking for is in itself already a contradiction.
Text files might include formatting information using some kind of markup language , such as HTML or Markdown , in which case you can read this into MATLAB just by reading the text data itself.
If you are actually talking about formatted document standards (such as .doc, .odf, etc), then these do include formatting text data, but the files are in fact binary data and not text data and so cannot be (usefully) imported into MATLAB as text.
MATLAB' standard character data class also only handles raw character encoding (usually two-byte), not formatted strings, so if you need to handle strings with formatting then you would probably need to write your own data class to do this.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by