<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 05/12/2019 à 14:25, Federico Miyara
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:84d6acff-5438-9330-d566-c9b54850f487@fceia.unr.edu.ar">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      Dear all,<br>
      <br>
      When using makecell such as in<br>
      <br>
      <font face="Courier New">--> u = makecell([2 2], cos, 'hello',
        1+%s^2, [1 2; 3 4])<br>
         u  = <br>
        <br>
          [  1 fptr      ]  [1x1 string  ]<br>
          [1x1 polynomial]  [2x2 constant]<br>
        <br>
        we get a cell array where the unidimensional ordering of the
        cells goes first along columns and then ows. However, when
        extracting components unidimensionally, it behaves the other way
        around:<br>
        <br>
        --> u(1:4)<br>
         ans  =<br>
        <br>
          [  1 fptr      ]<br>
          [1x1 polynomial]<br>
          [1x1 string    ]<br>
          [2x2 constant  ]<br>
        <br>
        The same happens wen applying matrix:<br>
        <br>
        --> matrix(u,4,1)<br>
         ans  =<br>
        <br>
          [  1 fptr      ]<br>
          [1x1 polynomial]<br>
          [1x1 string    ]<br>
          [2x2 constant  ]<br>
        <br>
        --> matrix(u,1,4)<br>
         ans  =<br>
        <br>
          [1 fptr]  [1x1 polynomial]  [1x1 string]  [2x2 constant]<br>
        <br>
        Isn't this inconsistent?<br>
        Shouldn't makecell create the cell array going along rows and
        then columns? <br>
      </font></blockquote>
    <br>
    <p><font face="Courier New">No, the doc says:</font></p>
    <p><font face="Courier New">s= makecell(dims,a1,a2,...an) creates a
        cell array of dimensions given by dims with the given input
        arguments. The ai are stored along the last dimension first.</font></p>
    <p><font face="Courier New"><br>
      </font></p>
    <blockquote type="cite"
      cite="mid:84d6acff-5438-9330-d566-c9b54850f487@fceia.unr.edu.ar"><font
        face="Courier New"> <br>
        Regards,<br>
        <br>
        Federico Miyara<br>
        <br>
      </font> <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
  </body>
</html>