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:
NEED HANGMAN PROGRAM!

Subject: NEED HANGMAN PROGRAM!

From: Aaron

Date: 11 Nov, 2008 19:09:02

Message: 1 of 3

I need a hangman program that would work on the R2008a version of Matlab. I tried the one in the file exchange and I couldn't run it (Maybe because it was on the R12 version of Matlab) I would really appreciate it if someone would help me!


tl;dr: I need a working .m file of hangman on Matlab.

Subject: NEED HANGMAN PROGRAM!

From: Dave Brackett

Date: 12 Nov, 2008 16:38:02

Message: 2 of 3

"Aaron " <borkovman@gmail.com> wrote in message <gfcl8e$lfg$1@fred.mathworks.com>...
> I need a hangman program that would work on the R2008a version of Matlab. I tried the one in the file exchange and I couldn't run it (Maybe because it was on the R12 version of Matlab) I would really appreciate it if someone would help me!
>
>
> tl;dr: I need a working .m file of hangman on Matlab.


you could try writing one yourself using your version of Matlab based on the existing one from the file exchange. shouldn't be too difficult.

Subject: NEED HANGMAN PROGRAM!

From: Dave Brackett

Date: 12 Nov, 2008 16:47:02

Message: 3 of 3

"Dave Brackett" <davebrackett@hotmail.com> wrote in message <gff0pa$n8e$1@fred.mathworks.com>...
> "Aaron " <borkovman@gmail.com> wrote in message <gfcl8e$lfg$1@fred.mathworks.com>...
> > I need a hangman program that would work on the R2008a version of Matlab. I tried the one in the file exchange and I couldn't run it (Maybe because it was on the R12 version of Matlab) I would really appreciate it if someone would help me!
> >
> >
> > tl;dr: I need a working .m file of hangman on Matlab.
>
>
> you could try writing one yourself using your version of Matlab based on the existing one from the file exchange. shouldn't be too difficult.

i've just tried using the hangman file from the file ex with version 2008a and the only thing stopping it from working is the 'flower' image which it tries to read from the image demos built in to matlab. This image does not come with version 2008a hence the difficulties in running it.

There does not appear to be a reason for displaying a picture of a flower so if you don't mind what is displayed, simply replace all references to 'flower' with an image that is included with this version.

If you type 'load imdemos' in the command window, it will load all of the available images. Choose one of those and replace the references in the code: e.g.
change the code to:

 % HangMan Drawing
u = figure;
set(u,'Color',[1 1 0])
load imdemos pepper
myflower(:,:,1) = pepper;
myflower(:,:,2) = pepper;
myflower(:,:,3) = zeros(128,128);
subplot(2,1,1)
imshow(pepper)


See if that works for you.

Tags for 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