Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Grid widget for MATLAB?

Subject: Grid widget for MATLAB?

From: none

Date: 1 Nov, 2007 22:27:01

Message: 1 of 3

I am thinking of using MATLAB to write a GUI application. I have done
some simple GUI things with it, charts, dialogs, etc. But, is there a
grid-like control that can be used with MATLAB (similar to the Excel
type grid)

thanks

John

Subject: Grid widget for MATLAB?

From: Peter

Date: 2 Nov, 2007 04:01:21

Message: 2 of 3

On Nov 1, 3:27 pm, none <""john\"@(none)"> wrote:
> I am thinking of using MATLAB to write a GUI application. I have done
> some simple GUI things with it, charts, dialogs, etc. But, is there a
> grid-like control that can be used with MATLAB (similar to the Excel
> type grid)
>
> thanks
>
> John

How about the following?

a = 1:12;
open a

This will open the variable a in the built-in, spreadsheet-like array
editor. I believe you can configure the editor to be free-floating
(apart from the desktop window) if you so desire.

--Peter

Subject: Grid widget for MATLAB?

From: Yair Altman

Date: 2 Nov, 2007 09:12:56

Message: 3 of 3

> I am thinking of using MATLAB to write a GUI application. I
> have done some simple GUI things with it, charts, dialogs,
> etc. But, is there a grid-like control that can be used with
> MATLAB (similar to the Excel type grid)

Check this Java-based data table:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14225
You may also look at some of my other submissions for
examples of using Java Swing for rich Matlab GUI:
http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=1096533

Matlab has an undocumented and unsupported built-in function
(uitable) that can also be a simple basic solution (my table
is basically an expanded wrapper for it). If you really want
fine-grained control over your data table/grid, consider
using your own Java object (like Swing's JTable or one of a
multitude of available Java widgets out there).

Lastly, if you only care about Windows, you can always embed
an ActiveX grid or table control. Look at the actxcontrol
and relatives.

Yair Altman
http://ymasoftware.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us