display text in next line in edit box
조회 수: 1 (최근 30일)
이전 댓글 표시
tmp_str=['Name= Reema','class = MCS']; want to display class in next line in edit box how can i do this? i know about matlab little bit plz help
댓글 수: 0
답변 (1개)
Image Analyst
2014년 6월 1일
tempString = sprintf('Name= Reema\nclass = MCS'); % Use backslash n for new line.
set(handles.string1, 'String', tempString);
댓글 수: 3
Image Analyst
2014년 6월 1일
What does not work? Your code? I know since you told us already. That's why I gave you code like I use all the time and I know works . Why you chose to ignore it and not use it, I have no idea. Why did you refuse to use sprintf() like I recommended?
참고 항목
카테고리
Help Center 및 File Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!