# questionDialog

Dialog prompting a User to respond 'Yes' or 'No' to a question.

## Contents

- Syntax
- Description
- Example
- Input Arguments
- Output Arguments
- See Also

## Syntax

R = questionDialog(Q, T)

## Description

R = questionDialog(Q, T) displays a dialog with question Q and title T prompting the User to respond 'Yes' or 'No'.

If 'Yes' is clicked, R = 1, otherwise R = 0 if 'No' is clicked.

## Example

    Q = 'Plot live streaming data?';
    T = 'Streaming Data Plot';

    R = questionDialog(Q, T);

    R

    R =

         1

## Input Arguments

- Q - the question to be asked to the User (string)
- T - the title to be displayed in the dialog (string)

## Output Arguments

- R - the response, 1 (Yes) or 0 (No)

## See Also

`questdlg`

Copyright: © 2015 Pico Technology Ltd. All rights reserved.