<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">There is an even simpler manner,
allowing to create a struct type variable with all fields<br>
<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">mopen</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">engine.in</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">r</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">mgetl</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">mclose</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">data</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">struct</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">for</span> <span style="color:rgb(0,0,0);">i</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,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);">s</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">w</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">strsplit</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">s</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">i</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">/\s+/</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">execstr</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">sprintf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">data.%s=%s</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">w</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">w</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">end</span>
-->data
data =
bore: 0.08
stroke: 0.08
squish: 0.001671
conrod: 0.14835
wrist: 0
rpm: 4000
swirl: 1.7
swirl_profile: 3.11
zhead: 0
pist_id: 1
liner_id: 4
head_id: 5
crevice_flag: 0
S.
<span style="color:rgb(74,85,219);">
</span></pre>
Le 14/03/13 11:19, Stéphane Mottelet a écrit :<br>
</div>
<blockquote cite="mid:5141A423.7080308@utc.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
Hello,<br>
<br>
this small script solves your problem :<br>
<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">mopen</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">engine.in</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">r</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">mgetl</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">mclose</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fd</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">data1</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">for</span> <span style="color:rgb(0,0,0);">i</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,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);">s</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">w</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">strsplit</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">s</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">i</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">/\s+/</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">for</span> <span style="color:rgb(0,0,0);">j</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,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);">w</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">data1</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">i</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">j</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">w</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">j</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">end</span>
<span style="color:rgb(160,32,240);">end</span>
<span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">r</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">find</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data1</span><span style="color:rgb(92,92,92);">==</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">bore</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">bore</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">eval</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">1(</span><span style="color:rgb(0,0,0);">r</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span><span style="color:rgb(160,32,240);">
</span></pre>
Hope this helps,<br>
<br>
S.<br>
<br>
Le 14/03/13 05:16, Munian, Devaraj a écrit :<br>
</div>
<blockquote
cite="mid:D73F6970A218454394B6AB23935F0AB858E4B02A@UK-EX-MBX-003.NMCorp.Nissan.Biz"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p>Dear Scilab Support,<o:p></o:p></p>
<p>We here in RNTBCI are testing Scilab to compare it against
Matlab. We are doing a pilot project to convert our script
in Matlab to Scilab for validating purpose.<o:p></o:p></p>
<p>If we are able to get the same result in Scilab compared
with Matlab, we will be converting all our Matlab
applications into Scilab applications.<o:p></o:p></p>
<p>During our pilot project which is a most simplest project
we are not able to proceed further because of issues
mentioned in the ppt.<o:p></o:p></p>
<p>I have also attached the data files and Matlab files for
your reference.<o:p></o:p></p>
<p>It will be really grateful if the issue is addressed at the
earliest.<o:p></o:p></p>
<p>Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black">Devaraj</span></b><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black"> | Assistant
Manager | Tools and Methods |<br>
<b>RENAULT NISSAN TECHNOLOGY & BUSINESS CENTRE INDIA
PRIVATE LIMITED<br>
</b>Ascendas IT Park, Mahindra World City SEZ | Plot #
TP2/1, Natham Sub Post Office |<br>
3<sup>rd</sup> Floor | Chengelpattu | Kancheepuram
District | Tamilnadu 603002 | India |<br>
Tel # | + 9144-67416303 |<br>
eMail | </span><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black"
lang="FR"><a moz-do-not-send="true"
href="mailto:devaraj.munian@rntbci.com"><span
style="color:blue" lang="EN-US">devaraj.munian@rntbci.com</span></a></span><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black">
| <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><img id="Picture_x0020_1"
src="cid:part2.04080901.09050106@utc.fr"
alt="cid:727344808@01032012-1EA6" border="0" height="25"
width="175"></span><b><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black"
lang="FR"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black"
lang="FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:red"
lang="ES-TRAD">T</span></b><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray"
lang="ES-TRAD">OGETHER</span></b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue"
lang="ES-TRAD"> </span><b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:red"
lang="ES-TRAD">E</span></b><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray"
lang="ES-TRAD">VERYBODY</span></b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue"
lang="ES-TRAD"> </span><b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:red"
lang="ES-TRAD">A</span></b><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray"
lang="ES-TRAD">CHIEVES</span></b><b><span
style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:red"
lang="ES-TRAD"> M</span></b><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray"
lang="ES-TRAD">ORE</span></b><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black"
lang="FR"> <o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p>***********************************************************************************************************<br>
CONFIDENTIALITY NOTICE<br>
<br>
This message is for the named person's use only. It may
contain confidential, proprietary or legally privileged
information.<br>
<br>
If you receive this message in error, please immediately
delete it and all copies of it from your system, destroy any
hard copies of it and notify us by email to <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:email.security@rntbci.com">email.security@rntbci.com</a>
with a copy of this message. You must not, directly or
indirectly, use, disclose, distribute, print or copy any part
of this message if you are not the intended recipient. RNTBCI
and any of its subsidiaries each reserves the right to monitor
all e-mail communications through its networks.<br>
<br>
RNTBCI is neither liable for the proper, complete transmission
of the information contained in this communication nor any
delay in its receipt. This email was scanned for the presence
of computer viruses. In the unfortunate event of infection
RNTBCI does not accept any liability.<br>
<br>
Any views expressed in this message are those of the
individual sender, except where the message states otherwise
and the sender is authorised to state them.<br>
***********************************************************************************************************</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>