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

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
homework John D'Errico 11 Nov, 2008 16:09:40
hangman matlab ... Jim Sturino 11 Nov, 2008 14:10:18
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com