FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Assistance FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Assistance FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

How to create a 2D Array in FPScript?

Page d'accueil ' Communauté ' FPScript ' Comment créer un tableau 2D dans FPScript ?

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33436
    Richard Weisang
    Maître des clés

    I know that I can use this expression to create an array of 1000 element starting with 0 and Delta 1 : (1000, 0, 1)

    Is it possible to use the same expression to create 2 dimensional array (matrix)?

    #33434
    Richard Weisang
    Maître des clés

    I know that I can use this expression to create an array of 1000 element starting with 0 and Delta 1 : (1000, 0, 1)

    Is it possible to use the same expression to create 2 dimensional array (matrix)?

    #33435
    Bernhard Kantz
    Participant

    The simplest way is to use the FPScript Multiply operator:

    0. # 1000
    Creates a data series (vector) of 1000 64-Bit float values.

    0. # 1000 # 100
    Creates a data matrix with 100 coloms and 1000 rows.

    To create a signal series, you can optionally assign an increasing X and Z component:
    Signal(0. # 1000 # 100, 1, 1)

    In thes example the X an Z components both start at 0 and have an increment of 1.

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.