<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Mike,<br>
    That is exactly what I needed.<br>
    Solved! Thanks!<br>
    Regards<br>
    Jens<br>
-------------------------------------------------------------------------------------------------<br>
    <div class="moz-cite-prefix">Am 20.10.2016 13:31, schrieb Mike Page:<br>
    </div>
    <blockquote
cite="mid:CAKsJTA7Sbm4TrUZrCp601kHMw8xskkuYHwE0xceCrOuRsG_Rig@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi Jens,<br>
                <br>
              </div>
              grep does something like what you want.<br>
              <br>
              -->[r,w]=grep(Ms,M);<br>
              -->matrix(w,size(Ms))<br>
               ans  =<br>
               <br>
                  12.    4.   <br>
                  2.     12.  <br>
                  6.     7.   <br>
               <br>
            </div>
            Not sure why grep produces a vector when searching for a
            matrix, but it seems that way.<br>
            <br>
          </div>
          HTH,<br>
        </div>
        Mike.<br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 20 October 2016 at 10:32, Jens Simon
          Strom <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:j.s.strom@hslmg.de" target="_blank">j.s.strom@hslmg.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <pre>Hallo,
Given the string vector 

M=['Jan','Feb','Mar','Apr','<wbr>May','Jun','Jul','Aug','Sep','<wbr>Oct','Nov','Dec']
which implicitly maps the string representation of the months to their number representataion I would like to map any string matrix containing elements of M into a numercal matrix showing the month numbers.
E. g. 
Ms=['Dec','Apr';'Feb','Dec';'<wbr>Jun','Jul']
should be converted to
Mn=[12,4;2,12;6,7].

Ho can that be done in a vectorial style?

Backward (given Mn) it is easier to me:
<span style="color:rgb(0,0,0)">Ms</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(50,185,185)">matrix</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">M</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">Mn</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(50,185,185)">size</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">Mn</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(74,85,219)">)</span>

Regards
Jens
</pre>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.scilab.org/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>