<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6002.18071" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello Dave</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for the pointer on the toolbox idea. 
Downloaded and have tried to install/setup on Windows Vista but can't get it to 
work. Think it's something to do with the path. At the moment I extracted the 
toolbox folder to C:\users\lester\documents\plotlib021-install   I 
also use Windows XP but haven't got around to testing on there. I have both 
version 5.01 and 5.1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tried loading the loader.sce file into 
Scilab:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Startup execution:<BR>  loading initial 
environment<BR> mclose: Cannot close file whose descriptor is 2: File is 
not active.<BR>   
exec('builder.sce',-1)<BR>                          
!--error 241 <BR>File "builder.sce" does not exist or read access 
denied.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>at line      11 of exec 
file called by :    
<BR>exec("C:/Users/Lester/Documents/plotlib021-install/loader.sce");<BR>in  
execstr instruction    called by :  </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Given that I am still pretty new with Scilab, it 
would be useful to know how the scilab plot commands could be used to generate 
the graphic I showed previously.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sorry if this is a basic question/problem but got 
to learn by asking :) I'm sure I'm missing some basic things with regards to the 
toolbox issue, but I thought they were pre-built and all you did was run the 
loader.sce file to get them into Scilab?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for the assistance in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Lester</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=dmcomer@dmcmicro.com 
  href="mailto:dmcomer@dmcmicro.com">dmcomer@dmcmicro.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@lists.scilab.org 
  href="mailto:users@lists.scilab.org">users@lists.scilab.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 02, 2009 6:50 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [scilab-Users] Matlab to 
  Scilab conversion</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Verdana color=#0000ff size=2>Lester,</FONT></DIV>
  <DIV><FONT color=#0000ff size=2></FONT> </DIV>
  <DIV><FONT color=#0000ff size=2>If you do not have the plotlib toolbox 
  installed, I recommend it. It will handle the semilogx command</FONT></DIV>
  <DIV><FONT color=#0000ff size=2>without having to convert to the Scilab plot 
  command. Not that the plot command is bad, just easier</FONT></DIV>
  <DIV><FONT color=#0000ff size=2>to convert. Post if yo uhave problems getting 
  plot lib working. I just did this myself. Plotlib can be found</FONT></DIV>
  <DIV><FONT color=#0000ff size=2>on the Scilab contributions site.</FONT></DIV>
  <DIV><FONT color=#0000ff size=2></FONT> </DIV>
  <DIV><FONT color=#0000ff size=2>Dave</FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT 
    face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Lester 
    Anderson [mailto:lester@arctica1.wanadoo.co.uk]<BR><B>Sent:</B> Wednesday, 
    September 2, 2009 01:30 PM<BR><B>To:</B> 
    users@lists.scilab.org<BR><B>Subject:</B> [scilab-Users] Matlab to Scilab 
    conversion<BR><BR></FONT>
    <STYLE></STYLE>

    <TABLE id=201179 height=400 width="100%" bgColor=#ffffff border=0>
      <TBODY>
      <TR>
        <TD vAlign=top width="100%">
          <DIV><FONT face=Arial size=2>Hello</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>I am fairly new to using Scilab (and 
          Matlab) but need to convert some existing files. I have attached an 
          example which I can't get to work and the image of the correct plot 
          from Matlab.</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Original Matlab file:</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>rho_m=3300; % in 
          kg/m^3<BR>rho_infill=2700;    % in 
          kg/m^3<BR>E=1e11;    % in 
          kg/m/s^2<BR>v=0.25;<BR>g=9.81; % in 
          m/s^2<BR>l1=1e3:2e3:50e3;    % in 
          m<BR>l2=75e3:25e3:1000e3;    % in m<BR>l=[l1 l2];  
          % in m<BR>k=1./l; % in 1/m</FONT></DIV>
          <DIV> </DIV>
          <DIV><FONT face=Arial size=2>for Te=0:10e3:100e3    % 
          in m<BR>    
          D=E*Te^3/(12*(1-v^2));<BR>    
          phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1);<BR>    
          semilogx(k,phi)<BR>    hold on<BR>    
          title('\Phi _e(k) for various T_e')<BR>    
          xlabel('Wavenumber k')<BR>    ylabel('\Phi 
          _e(k)')<BR>end<BR>text(1.7e-6,0.5,'T_e=100km')<BR>text(3.6e-5,0.5,'T_e=10km')<BR>text(8e-5,0.95,'T_e=0km')</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Output from the conversion 
          below:</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>// Display mode<BR>mode(0);</FONT></DIV>
          <DIV> </DIV>
          <DIV><FONT face=Arial size=2>// Display warning for floating point 
          exception<BR>ieee(1);</FONT></DIV>
          <DIV> </DIV>
          <DIV><FONT face=Arial size=2>rho_m = 3300;<BR>// in 
          kg/m^3<BR>rho_infill = 2700;<BR>// in kg/m^3<BR>E = 
          100000000000;<BR>// in kg/m/s^2<BR>v = 0.25;<BR>g = 9.81;<BR>// in 
          m/s^2<BR>l1 = 1000:2000:50000;<BR>// in m<BR>l2 = 
          75000:25000:1000000;<BR>// in m<BR>l = [l1,l2];<BR>// in m<BR>k = 1 
          ./l;<BR>// in 1/m</FONT></DIV>
          <DIV> </DIV>
          <DIV><FONT face=Arial size=2>for Te = 0:10000:100000<BR>  // in 
          m<BR>  D = (E*(Te^3))/(12*(1-v^2));<BR>  phi = 1 ./((D .*(k 
          .^4)) ./((rho_m-rho_infill)*g)+1);<BR>  // !! L.14: Matlab 
          function semilogx not yet converted, original calling sequence 
          used.<BR>  semilogx(k,phi)<BR>  
          set(gca(),"auto_clear","off")<BR>  title("\Phi _e(k) for various 
          T_e")<BR>  xlabel("Wavenumber k")<BR>  ylabel("\Phi 
          _e(k)")<BR>end;<BR>// !! L.20: Matlab function text not yet converted, 
          original calling sequence 
          used.<BR>text(0.0000017,0.5,"T_e=100km")<BR>// !! L.21: Matlab 
          function text not yet converted, original calling sequence 
          used.<BR>text(0.000036,0.5,"T_e=10km")<BR>// !! L.22: Matlab function 
          text not yet converted, original calling sequence 
          used.<BR>text(0.00008,0.95,"T_e=0km")</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Hopefully someone can see what is needed 
          to get things working. Thanks in advance all.</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Lester Anderson</FONT></DIV>
          <BLOCKQUOTE></BLOCKQUOTE></TD></TR></TBODY>
      <BLOCKQUOTE></BLOCKQUOTE>
      <BLOCKQUOTE></BLOCKQUOTE>
      <BLOCKQUOTE></BLOCKQUOTE>
      <BLOCKQUOTE></BLOCKQUOTE>
      <BLOCKQUOTE></BLOCKQUOTE>
      <BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>