[Users-fr] Structure

classic Classic list List threaded Threaded
4 messages Options
HEBERT, Christophe HEBERT, Christophe
Reply | Threaded
Open this post in threaded view
|

[Users-fr] Structure

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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr
Pierre Payen Pierre Payen
Reply | Threaded
Open this post in threaded view
|

Re: Structure

Stru(obj) = 1

Pierre Payen
00 33 6 52 92 40 92

Le ven. 25 mai 2018 à 10:54, HEBERT, Christophe <[hidden email]> 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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr

_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr
Pierre Payen Pierre Payen
Reply | Threaded
Open this post in threaded view
|

Re: Structure

In reply to this post by HEBERT, Christophe
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 <[hidden email]> 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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr

_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr
HEBERT, Christophe HEBERT, Christophe
Reply | Threaded
Open this post in threaded view
|

Re: Structure

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

 

Merci beaucoup !

Bonne journée

 

De : users-fr [mailto:[hidden email]] 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 <[hidden email]> 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
[hidden email]
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.

_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr