<!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="#000000">
    On 09/26/2011 08:12 PM, Jerry Wang wrote:
    <blockquote
      cite="mid:1317060746.56218.YahooMailNeo@web114712.mail.gq1.yahoo.com"
      type="cite">
      <div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
        255); font-family: arial,helvetica,sans-serif; font-size: 10pt;">
        <div style="right: auto;">Hello,</div>
        <div style="right: auto;"> </div>
        <div style="right: auto;">I'm new to scilab, so please excuse
          the simple question.  (I had searched a few hours and can't
          find answer)</div>
        <div style="right: auto;"> </div>
        <div style="right: auto;">How do I address part of a string?</div>
        <div style="right: auto;"> </div>
        <div style="right: auto;">For example:</div>
        <div style="right: auto;"> </div>
        <div style="right: auto;">myString = "abcdefg"</div>
        <div style="right: auto;">How do I get characters 4:6, which
          would be"def"?</div>
      </div>
    </blockquote>
    Use the part function.<br>
    <br>
    BTW one of the best feature of scilab (compared to matlab) is it's
    ability to have matrices of strings (with different sizes) because a
    string is an object.<br>
    When doing myString = "abcdefg" you are creating a 1x1 matrix
    (similarly a=2.3 is matrix).<br>
    You can see that by typing myString(1).<br>
    <blockquote
      cite="mid:1317060746.56218.YahooMailNeo@web114712.mail.gq1.yahoo.com"
      type="cite">
      <div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
        255); font-family: arial,helvetica,sans-serif; font-size: 10pt;">
        <div style="right: auto;"> </div>
        <div style="right: auto;">Thank you.</div>
        <div style="right: auto;"> </div>
        <div style="right: auto;">Jerry<var id="yui-ie-cursor"></var></div>
      </div>
    </blockquote>
    <br>
  </body>
</html>