필터 지우기
필터 지우기

Numbering an edit box

조회 수: 2 (최근 30일)
Ashlee
Ashlee 2012년 12월 4일
My group and I have put together a GUI that searches PubMed and lists the titles below. For the results, we are wondering if there is a way to number the titles. This is to make it work better with an image that pops up in correlation.
So we want:
1. PTEN:...
2. ...
3. ...
4. ...
We are currently using an edit box for the results because it has a scroll bar.
Any direction would be helpful, and if you need more information, just let me know.
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 12월 4일
Jan
Jan 2012년 12월 4일
And even with gmail account: It is not a good idea to post a https link with a session ID. Many trojans and virusses try to steal such session IDs, such that I'd hesitate to publish it.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 4일
Let T be your current cell array of strings that are the titles. Then
NT = arrayfun(@(K) sprintf('%d. %s', K, T{K}), 1:length(K), 'Uniform', 0);
will be the new numbered version of it that you can then set() as the String parameter of the edit box.
There is no option for uicontrol of style editbox to automatically number lines.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by