title: input dialog box matlab check if empty
body: <p>Why does <code>isempty</code> return <code>0</code> instead of returning <code>1</code> when nothing is entered by the user?</p>
  
  <pre><code>&gt;&gt; prompt1 = {' Video Name:'};
  dlg_title = 'Input';
  num_lines = 1;
  answer1 = inputdlg(prompt1,dlg_title,num_lines);
  &gt;&gt; isempty(answer1)
  </code></pre>
  
  <p><br ></p>
  
  <p><code>ans = 0</code></p>