[Users-fr] Structure

HEBERT, Christophe christophe.hebert at airbus.com
Ven 25 Mai 11:08:49 CEST 2018


C'est vrai !!! ça marche !!!

Merci beaucoup !
Bonne journée

De : users-fr [mailto:users-fr-bounces at lists.scilab.org] De la part de Pierre Payen
Envoyé : vendredi 25 mai 2018 11:03
À : French users mailing list for Scilab
Objet : Re: [Users-fr] Structure

Il faut enlever le point, sous scilab
Pierre Payen
00 33 6 52 92 40 92

Le ven. 25 mai 2018 à 10:54, HEBERT, Christophe <christophe.hebert at airbus.com<mailto:christophe.hebert at airbus.com>> a écrit :
Bonjour à tous,

Je cherche à créer une structure dont un des élément est une variable :
Exemple :
Soit la structure : stru
La variable obj="test1"
Je voudrais que l'élément de stucture ==> stru.test1=1

Si j'écris stru.obj=1 alors scilab me réponds ==> stru= obj [1x1 constant]
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]

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)

Qq'un a-t-il une solution ?

En vous remerciant de votre aide …

Christophe


Christophe HEBERT
Test Engineer
Vehicle Tests France - ETXSLT
Airbus Helicopters





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.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
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.
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.
_______________________________________________
users-fr mailing list
users-fr at lists.scilab.org<mailto:users-fr at lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users-fr
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.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
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.
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.
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <https://lists.scilab.org/pipermail/users-fr/attachments/20180525/f739f117/attachment.htm>


Plus d'informations sur la liste de diffusion users-fr