<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank You Francis I got it<br><br><div><font face="arial"><em>--------------------------------------------------------------------------------------------------</em></font></div>  <div><font face="arial"><em>"Be good, be kind, be humane, and charitable; love your fellows; </em></font></div>  <div><font face="arial"><em>console the afflicted; pardon those who have done you wrong."</em></font></div>  <div><em><font face="arial"><u>Zoroaster.</u></font><img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif"><br><br></em><br></div><br><div><img src="http://counter.li.org/cgi-bin/certificate.cgi/474254"></div><div><a rel="nofollow" target="_blank" href="http://ubuntucounter.geekosophical.net" title="The UbuntuCounter Project - user number # 22904"><img src="http://ubuntucounter.geekosophical.net/img/ubuntu-user2.php?user=22904" alt="The
 Ubuntu Counter Project - user number # 22904"></a></div><br><br>--- On <b>Fri, 3/6/09, Francis Drossaert <i><Francis.Drossaert@pgs.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Francis Drossaert <Francis.Drossaert@pgs.com><br>Subject: RE: [scilab-Users] mopen command help needed<br>To: users@lists.scilab.org<br>Date: Friday, March 6, 2009, 2:55 PM<br><br><div id="yiv62271128">


 
 

<style>
<!--
#yiv62271128  
 _filtered #yiv62271128 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv62271128 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv62271128 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv62271128 {font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}
 _filtered #yiv62271128 {font-family:"Bookman Old Style";panose-1:2 5 6 4 5 5 5 2 2 4;}
#yiv62271128  
#yiv62271128 p.MsoNormal, #yiv62271128 li.MsoNormal, #yiv62271128 div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv62271128 a:link, #yiv62271128 span.MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv62271128 a:visited, #yiv62271128 span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv62271128 code
        {font-family:"Courier New";}
#yiv62271128 pre
        {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv62271128 p.MsoListParagraph, #yiv62271128 li.MsoListParagraph, #yiv62271128 div.MsoListParagraph
        {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv62271128 span.HTMLPreformattedChar
        {font-family:Consolas;}
#yiv62271128 span.kwd
        {}
#yiv62271128 span.pln
        {}
#yiv62271128 span.EmailStyle23
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv62271128 .MsoChpDefault
        {}
 _filtered #yiv62271128 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}
#yiv62271128 div.Section1
        {}
#yiv62271128  
 _filtered #yiv62271128 {}
 _filtered #yiv62271128 {}
 _filtered #yiv62271128 {}
 _filtered #yiv62271128 {}
#yiv62271128 ol
        {margin-bottom:0cm;}
#yiv62271128 ul
        {margin-bottom:0cm;}
-->
</style>

<div class="Section1">

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Hi Stephen,</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">  </span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">1. Make sure that the filename is correct. If your data file is
called xyz.dat then the first command should be <i>fid = mopen(‘xyz.dat’,’r’)</i>
or you do: <i>filename  =  ‘xyz.dat’; fid =  mopen(filename,’r’)</i>;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">2. Make sure that the data file is in the current working directory
or make sure that the path is correct for example: <i>fid = mopen(‘../data/xyz.dat’,’r’)</i>.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">  </span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Cheers,</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">  </span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Francis</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">  </span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">  </span></p> 

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";" lang="EN-US"> Stephen Thomas
[mailto:steeve102000@yahoo.com] <br>
<b>Sent:</b> 06 March 2009 04:20<br>
<b>To:</b> users@lists.scilab.org<br>
<b>Subject:</b> [scilab-Users] mopen command help needed</span></p> 

</div>

<p class="MsoNormal">  </p> 

<table class="MsoNormalTable" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0cm;" valign="top">
  <p class="MsoNormal" style="margin-bottom: 12pt;">hi im a newuser to
  scilab..not much prior experience in any other equivalent software too</p> 
  <pre><span class="pln"><span style="color: rgb(64, 0, 127);">i want to open a file for reading a set of x y z values from scilab</span></span><span style="color: rgb(64, 0, 127);"><br><br>  <span class="pln"> i copeied the code frm</span><br><br>  <span class="pln"> </span></span><span style="font-family: "Bookman Old Style","serif"; color: rgb(64, 0, 127);"><br><br> http://spiff.rit.edu/classes/phys317/lectures/readwrite.html<br><br>  </span><span style="color: rgb(64, 0, 127);"><br><br>  <span class="pln">Code</span><br><br>  <br><br>  </span><i><span style="font-family: "Tahoma","sans-serif"; color: rgb(64, 0, 127);"> fid = mopen(filename, "r");<br><br>  if (fid == -1)<br><br>    error("cannot open file for reading");<br><br>  end<br><br>  </span></i><span style="font-family: "Bookman Old Style","serif"; color: rgb(64, 0, 127);"><br><br>to scipad
 editor and tried to execute via  "Load into scilab" i had created an empty file in home directory named "filename "via gedit<br><br>before execution .<br><br>While execution says "Undefined variable 'filename'<br><br>then i changed the code to <br><br>  </span><i><span style="font-family: "Tahoma","sans-serif"; color: rgb(64, 0, 127);"> <br><br>fid = mopen(</span></i><i><span style="font-family: "Tahoma","sans-serif"; color: rgb(64, 127, 0);">"filename",</span></i><i><span style="font-family: "Tahoma","sans-serif"; color: rgb(64, 0, 127);"> "r");</span></i><span style="font-family: "Bookman Old Style","serif"; color: rgb(64, 0, 127);"><br><br>  <br><br>ie added " " before and after filename then it executes..<br><br>what is the problem here i cant understand it...I just copied it as it is
 from<br><br> http://spiff.rit.edu/classes/phys317/lectures/readwrite.html<br><br>Is the syntax used here is wrong??<br><br>Where should i</span></pre><pre style="margin-bottom: 12pt;"><span style="font-family: "Bookman Old Style","serif"; color: rgb(64, 0, 127);"> get the correct syntax for the function mopen and other functions then?<br><br>  <br><br>i tried<i> 'help mopen'<br><br>  </i>and it displayed<i><br><br>  <br><br>Calling sequence<br><br>  <br><br>[fd.err]=mopen( file [,mode ,swap]) <br><br>  <br><br>  </i>Is this the proper syntax ?? I dont think so ,where should i get the corret sequence then?<br><br> somebody please help..<br><br>Thanks<i><br><br>  <br><br>  <br><br>  </i><br><br>  <br><br>  </span></pre> 
  <div>
  <p class="MsoNormal"><em><span style="font-family: "Arial","sans-serif";">--------------------------------------------------------------------------------------------------</span></em></p> 
  </div>
  <p class="MsoNormal">  </p> 
  <div>
  <p class="MsoNormal"><em><span style="font-family: "Arial","sans-serif";">"Be
  good, be kind, be humane, and charitable; love your fellows; </span></em></p> 
  </div>
  <p class="MsoNormal">  </p> 
  <div>
  <p class="MsoNormal"><em><span style="font-family: "Arial","sans-serif";">console
  the afflicted; pardon those who have done you wrong."</span></em></p> 
  </div>
  <p class="MsoNormal">  </p> 
  <div>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><em><u><span style="font-family: "Arial","sans-serif";">Zoroaster.</span></u></em><i><span style="border: 1pt solid windowtext; padding: 0cm;"><img id="_x0000_i1025" src="cid:1.3632080066@web111308.mail.gq1.yahoo.com" alt="Image removed by sender." height="100" width="100"></span><br>
  <br>
  </i></p> 
  </div>
  <p class="MsoNormal">  </p> 
  <div>
  <p class="MsoNormal"><span style="border: 1pt solid windowtext; padding: 0cm;"><img id="_x0000_i1026" src="cid:1.3632080066@web111308.mail.gq1.yahoo.com" alt="Image removed by sender." height="100" width="100"></span></p> 
  </div>
  <div>
  <p class="MsoNormal"><a rel="nofollow" target="_blank" href="http://ubuntucounter.geekosophical.net" title="The UbuntuCounter Project - user number # 22904"><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none;"><img id="_x0000_i1027" src="cid:1.3632080066@web111308.mail.gq1.yahoo.com" alt="Image removed by sender. The Ubuntu Counter Project - user number # 22904" border="0" height="100" width="100"></span></a></p> 
  </div>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Calibri","sans-serif";">  </span></p> 

</div>

This email and any files contained therein is confidential and may contain privileged information.  If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
 

</div></blockquote></td></tr></table><br>