Matlab

Discussion in 'Programmer's Corner' started by braddy, Feb 28, 2005.

  1. braddy

    Thread Starter Well-Known Member

    Dec 29, 2004
    83
    0
    Hi,

    I have a question regarding matlab exercise:

    Given the following sequence of commands:
    color=['r','b','g','k']; c=menu('Choose a color','r','b','g','k');

    What should the user enter at the keyboard in order to select the color black?

    This is the question.
    Please can someon help me on this?

    Thankx

    braddy
     
  2. Brandon

    Senior Member

    Dec 14, 2004
    306
    0
    When you do that command, you get a dialog window that gives you 4 buttons to choose from. R, B, G, K. There is nothing to enter on the keyboard. Just point and click.
     
Loading...