<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><br>
    ---------- Bug Summary ----------- <br>Incorrect submatrix insertion. A = rand(3,3,1); B = rand(3,3); A(:,:) = B <br><br>
    <br>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect submatrix insertion. A = rand(3,3,1); B = rand(3,3); A(:,:) = B"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=8669#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect submatrix insertion. A = rand(3,3,1); B = rand(3,3); A(:,:) = B"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=8669">bug 8669</a>
              from <span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span></b>
        <pre>(In reply to ruben from <a href="show_bug.cgi?id=8669#c8">comment #8</a>)
<span class="quote">> 
> Another example is:
> t = 4*ones(4,3,1)
> s = ones(1,7)
> size(t.*.s)
>  ans  =
>  
>     4.    21.  
> When I would like it to be 4. 3. 7.</span >

There is no reason for that. Indeed, ones(1,7) is equivalent to ones(1,7,1). Then, the expected size of t.*.s is [4*1 3*7 1*1] == [4 21 1] that is
automatically squeezed into [4 21].
To get a [4 3 7] sized result, you must use s = ones(1,1,7). That works.

Samuel</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>