How to I disable truncation of long strings in structs in command window?
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am on Matlab R2014a (8.3.0.532, glnxa64). Whenever I have a long string as a struct member and let it display on the command window, I get a truncated version of it. How do I disable this "feature"?
Example:
>> myStruct.myFieldname = repmat('A', 1, 100)
myStruct =
myFieldname: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...'
0 件のコメント
回答 (1 件)
Thomas Koelen
2015 年 4 月 9 日
編集済み: Thomas Koelen
2015 年 4 月 9 日
myStruct.myFieldname = repmat('A', 1, 100);
fprintf(myStruct.myFieldname)
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
:D
edit:
Just typing
myStruct.myFieldname
also showed me the whole string.
2 件のコメント
Thomas Koelen
2015 年 4 月 9 日
What exactly are you trying to do? Could you explain so I can be of better help!
参考
カテゴリ
Help Center および File Exchange で Argument Definitions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!