Highlights from
Programmatically scroll Variables Editor

  • findjobj(container,varargin)
    findjobj Find java objects contained within a specified java container or Matlab GUI handle
  • scrollto(name, pos)
    SCROLLTO Opens variable in the Variables Editor and scrolls to the specified position
  • View all files

5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 486 KB File ID: #42795
image thumbnail

Programmatically scroll Variables Editor

by

 

23 Jul 2013 (Updated )

Opens a variable in the Variables Editor (grabs focus if open) and scrolls to position.

| Watch this File

File Information
Description

----------------------------------------
EXISTING/NEW ISSUES (or enhancement requests):
- Please, check and report new issues to https://github.com/okomarov/scrollto/issues
- If a new issues occurs, provide all steps to reproduce it, even if it means including a "restart the pc" step.
----------------------------------------
Opens a variable in the Variables Editor (grabs focus if already open) and scrolls to given position/subs.
Supported scrollable classes (matrices):
* numeric
* logical
* cell
* timeseries
* table (from R2013b - v2.1)
* categorical (from 2013b - v2.1)
* dataset (Statistics Toolbox)

Examples:

% Scroll a simple logical variable
a = false(1e6,100);
pos = randi(1e8,1);
scrollto('a',pos)

% Scroll somewhere else
scrollto('a',[1e5, 28])

% Wrap into a structure and scroll the indexed variable
s.foo = a;
scrollto('s.foo',pos)

% Wrap into cell and scroll with several levels of nesting
c = {s};
scrollto('c{1}.foo', pos)

% Scroll 3D array
a = rand(10,10,10);
scrollto('a(:,:,2)',[5,2])

WARNING: this code heavily relies on undocumented and unsupported Matlab functionality.

p14v2.10

Acknowledgements

Find J Obj Find Java Handles Of Matlab Graphic Objects and Uiinspect Display Methods Properties Callbacks Of An Object inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.3 (R2014a)
Other requirements Java should be enabled. Requires FEX: findjobj().
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
02 Jul 2014 Wei Xia  
Updates
06 Sep 2013

Additional feature:
 - scrolls from 'caller' ws, e.g. scroll in debug mode;

Fixed bugs:
 - now handles corner case within size-bounds scrolling;
 - corrected the scrolling type of ts to dataset (was swapped before).

11 Sep 2013

Edited description.

13 Sep 2013

Added support for table and categorical arrays (classes introduced with R2013b)

24 Jun 2014

Linked to github

04 Jul 2014

Edited description

Contact us