<div dir="auto">Il faut enlever le point, sous scilab<br><br><div data-smartmail="gmail_signature">Pierre Payen<br>00 33 6 52 92 40 92</div></div><br><div class="gmail_quote"><div dir="ltr">Le ven. 25 mai 2018 à 10:54, HEBERT, Christophe <<a href="mailto:christophe.hebert@airbus.com">christophe.hebert@airbus.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="FR" link="blue" vlink="purple">
<div class="m_4467728304501843877WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Bonjour à tous,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Je cherche à créer une structure dont un des élément est une variable :<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Exemple :<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Soit la structure : stru<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">La variable obj="test1"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Je voudrais que l'élément de stucture
</span><span style="font-size:10.0pt;font-family:Wingdings;color:#1f497d">è</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"> stru.test1=1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Si j'écris stru.obj=1 alors scilab me réponds
</span><span style="font-size:10.0pt;font-family:Wingdings;color:#1f497d">è</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"> stru= obj [1x1 constant]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">En fait je souhaite que obj soit remplacé par sa valeur (qui est "test1") et que donc scilab me réponde stru= test1 [1x1 constant]
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Sous matlab il y a la possibilité en écrivant stru.(obj) = 1 (en mettant obj entre parenthèse, alors matlab remplace obj par sa valeur)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Qq'un a-t-il une solution ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">En vous remerciant de votre aide …<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Christophe<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="color:black">Christophe HEBERT<u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black">Test Engineer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black">Vehicle Tests France - ETXSLT<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:.5pt"><b><span lang="EN-US" style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black">Airbus Helicopters<u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-bottom:.5pt"><span lang="EN-US" style="font-size:5.0pt;font-family:"Tahoma","sans-serif";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</div>
<font style="font-size:9px">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font></div>
_______________________________________________<br>
users-fr mailing list<br>
<a href="mailto:users-fr@lists.scilab.org" target="_blank" rel="noreferrer">users-fr@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users-fr" rel="noreferrer noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users-fr</a><br>
</blockquote></div>