If we ever trace the code, (for example GUI\sci_gateway\c\sci_delmenu.c) <br><br>------------------------------------------------------------------------------------------------------<br>      // Unset a Menu a Scilab Graphic Window<br>
      if (VarType(1) != sci_matrix)<br>        {<br>          Scierror(999, _("%s: Wrong type for first input argument: Double value expected.\n"),fname);<br>          return FALSE;<br>        }<br>      GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &nbRow, &nbCol, &stkAdr);<br>
------------------------------------------------------------------------------------------------------<br>'Double value' always maps to 'MATRIX_OF_DOUBLE_DATATYPE' which means 'real or complex matrix' in Scilab. (<a href="http://wiki.scilab.org/Memory_representation_of_variables#head-d64767f239049822afbdf1e6ffb433173b03d777">Memory representation of variables</a> or <a href="http://wiki.scilab.org/Localization_in_English_-_Standard_messages">http://wiki.scilab.org/Localization_in_English_-_Standard_messages</a><br>

). <br><br>But if we follow the gui context then 'Double value' seems to  mean 'a real' (I don't expect to read any complex value in GUI applications).<br><br>The use of 'Double value' causes trouble in interpretation of the meaning, especially if coupled with the use of  'Single value' which means 1x1 matrix.<br>
<br>To avoid mistake, use 'a real' if it really need  a real, 'real matrix' if we need a real matrix or 'real or complex matrix' if we need a  generic data.<br><br><br>YungLee<br><br><div class="gmail_quote">
2008/5/27 Shiqi Yu <<a href="mailto:shiqi.yu@gmail.com">shiqi.yu@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I think they are all means a double float point <b>real </b>scalar(1x1 matrix), but we can't replace them with 'real or complex matrix'.<br>
First, if we use 'matrix', users will input a MxN (M,N>1) matrix.<br>
Second, I think they must be real and can't be complex. <br><br><br><div class="gmail_quote">2008/5/27 Yung-Jang Lee <<a href="mailto:yjlee123@gmail.com" target="_blank">yjlee123@gmail.com</a>>:<div><div></div>
<div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>In gui.pot , I found following different messages<br><br>      'A double value expected',<br>      'A double expected',<br>      'Scalar value expected',<br>      'A value expected',<br>



      'Single value expected'<br><br>and they all means 'A real or complex'. <br><br>I module gui, 'double value' means 'real or complex matrix', 'single value' means '1x1 matrix' and 'A..' also means  '1x1 matrix' . Follow this way,   we have<br>


<br>'A double vaule'  == 'Single value'  == 'A value'.<br> <br>I think this induce unnecessary mistake. It is better to replace  'double value'  to 'real or complex matrix' or just 'matrix'  in gui module.<br>


<br>YungLee<br> <br>
</blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Shiqi Yu<br>Shenzhen Institute of Advanced Technology, <br>Chinese Academy of Sciences.<br>Homepage: <a href="http://yushiqi.cn" target="_blank">http://yushiqi.cn</a><br>

</font></blockquote></div><br>