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:
Using MATLAB for presentations

Subject: Using MATLAB for presentations

From: Ethan Montag

Date: 28 May, 1997 15:59:37

Message: 1 of 2

Now that MATLAB 5.0 has truecolor, I can not only generate images (with
very large color maps) but I can also display them.

I would like to take advantage of this and use MATLAB to present images
for my research. However, I would like to remove menus and frames and
present images on black or other colored backgrounds. I would also like
to be able to record responses while this is going on (key presses,
mouse button, etc).

Is there a way to do this in MATLAB or with a MEX file someone has
written? (My platform is the power Mac.)
--
Ethan D. Montag edmpci@rit.edu
Munsell Color Science Lab 716-475-5096
Center for Imaging Science FAX:716-475-5988
Rochester, NY 14623-5604

Subject: Using MATLAB for presentations

From: daf@mathworks.com (David Foti)

Date: 29 May, 1997 15:09:48

Message: 2 of 2

Ethan Montag (edmpci@rit.edu) wrote:
: I would like to take advantage of this and use MATLAB to present images
: for my research. However, I would like to remove menus and frames and
: present images on black or other colored backgrounds. I would also like
: to be able to record responses while this is going on (key presses,
: mouse button, etc).

You can do all of these things in MATLAB 5. To make a window
without a menubar, set the figure 'menubar' property to the value
'none'. You can get rid of all window frames by creating a figure
whose position is the screensize. Below is an example of how to
create a window with a black background that fills the entire screen
and shows no frames or menus (at least under Windows and unix):

f = figure('menubar', 'none',... % turn off menubar
           'color', 'black',... % make black background
           'position', get(0,'screensize'),... % fill the screen
           'windowbuttondownfcn', 'MousePressCallback',...
'keypressfcn', 'KeyPressCallback');

The strings: 'MousePressCallback' and 'KeyPressCallback' are the names
of m-file functions you create to process key and mouse presses.
For more information, consult the online help-desk and the MATLAB 5 Graphics
Users' Guide.

Hope this helps,
-Dave
-----------------------------------------------------
Dave Foti daf@mathworks.com
The MathWorks, Inc.
24 Prime Park Way
Natick, MA 01760 http://www.mathworks.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