using sliders to scroll up/down the result appears in static text object

hello I have written a simple code to generate a set of numbers from (1-1000).however results appear in the static text are incomplete. how can I use sliders to scroll to the end of result?

2 Comments

The question is not clear yet. Please edit the text and add further details: What does "incomplete" mean?
hello thank you for reading, the output is about (1000 row) and the static text will only show 20 to 30 rows of the result due to its size, I need a slider to enable navigating the result to the end

Sign in to comment.

Answers (1)

Use a 'listbox' instead of a 'text' uicontrol, because it has a scroll-bar automatically.

Asked:

on 15 Aug 2018

Commented:

on 15 Aug 2018

Community Treasure Hunt

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

Start Hunting!