<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#330000">
    Hi Edouardo<br>
    <br>
    This is not a bug, but a feature!<br>
    <br>
    you should read this :
    <a class="moz-txt-link-freetext" href="http://wiki.scilab.org/howto/global%20and%20local%20variables">http://wiki.scilab.org/howto/global%20and%20local%20variables</a><br>
    <br>
    In the commented example, look for the following line : <br>
    <pre>  x(3)=56          // note that at this point x=[0 0 56] because of 3. above, *not* [45 0 56]

this is exactly want happened to you
</pre>
    <br>
    <br>
    On 13/06/2011 22:11, Eduardo Torrecillas wrote:
    <blockquote
      cite="mid:BANLkTi=0jeghdyceQDgRu6TnZScgDGTgdA@mail.gmail.com"
      type="cite">Hi all,<br>
      <br>
      I have some piece of code and noticed some strange behaviour. As
      the code is complex and involves external compilation, it is a
      little bit difficult to post it here, so I will try to explain it
      in a general way.<br>
      <br>
      At some point in the code, I have a structure called interpolados,
      having 3 matrices. So, I have<br>
      <br>
      interpolados(1).matriz<br>
      interpolados(2).matriz<br>
      interpolados(3).matriz<br>
      <br>
      all of them are sized 497 x 95.<br clear="all">
      <br>
      Later on, when trying to substitute a column of one of this
      matrices, I get it destroyed.<br>
      The syntax I'm using is:<br>
      <br>
      interpolados(1).matriz(:,3)=13<br>
      <br>
      I was expecting to maintain the matrix and change only its third
      column, all with 13. Actually what I'm getting is that
      interpolados(1).matriz is no longer 497 x 95, but 497 x 1 (only 1
      column, all full with 13).<br>
      <br>
      System summary: Ubuntu 10.10 64bit + Scilab 5.3.2<br>
      <br>
      Has anybody experienced that? Any issues?<br>
      <br>
      Regards,<br>
      <br>
      <br>
      -- <br>
      Eduardo Torrecillas<br>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <style>
<!--
  p
        {margin:0pt;
           color:teal;
           font-family:"Cambria Math"
        font-size:12.0pt;
        }
-->
</style>
      <p><b>Adrien Vogt-Schilb</b></p>
      <p>Research Fellow</p>
      <p><a a="" href="mailto:vogt@centre-cired.fr"
          style="text-decoration: none; color: teal;">vogt@centre-cired.fr</a></p>
      <p>Tel: (+33) 1 43 94 73 96</p>
      <p>Fax: (+33) 1 43 94 73 70</p>
      <table style="border: medium none; margin-left: 1pt; margin-top:
        4pt;" cellspacing="0">
        <tbody>
          <tr>
            <td style="padding: 0pt;">
              <p><img src="cid:part1.07080909.06020900@centre-cired.fr"
                  alt="CIRED" width="54"></p>
            </td>
            <td style="padding: 0pt 7pt;" valign="middle">
              <p style="font-size: 10pt;">45 bis, Av de la Belle
                Gabrielle</p>
              <p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
              <p style="font-size: 10pt;"><a
                  href="http://www.centre-cired.fr/" style="color:
                  teal;">http://www.centre-cired.fr/</a></p>
            </td>
          </tr>
        </tbody>
      </table>
      <p> </p>
    </div>
  </body>
</html>