フィルターのクリア

display newline string from cell array

6 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2018 年 3 月 16 日
回答済み: Geoff Hayes 2018 年 3 月 16 日
I have a cell array of characters. In that i have a newline character.
I use strjoin to get the full sentence
fullsentence = strjoin(word, '');
But when i display output is coming as
ER\n\nR
but i wanted it as
ER
R

採用された回答

Geoff Hayes
Geoff Hayes 2018 年 3 月 16 日
Elysi - how are you displaying the output of fullsentence? If you do
fprintf(fullsentence)
then you should see the \n evaluated as line breaks.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by