-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > FPScript > Matrix erweitern > Reply To: Matrix erweitern

In diesem speziellen Fall liefert der FPScrip-Ausdruck
Matrix2x5 : 0 : 0 : 0 : 0 : 0
am einfachsten das gewünschte Ergebnis; es werden fünf mal eine 0-Spalte (welche auf die passende Länge erweitert wird) angehängt, man erhält also eine Matrix mit 7 Datenreihen mit je 5 Werten.
Im allgemeinen Fall erzeuge man sich eine Matrix der gewünschten Größe, initialisiert mit dem benötigten Anfangswert, und setze deren entsprechenden Teil auf die zu erweiternde Matrix. Im konkreten Beispiel:
Dim res = 0 # 5 # 7
Dim cols = NumberOfColumns(Matrix2x5)
Dim rows = NumberOfRows(Matrix2x5)
res[0, cols - 1][0, rows - 1] = Matrix2x5
Natürlich kann die Verwendung der Variablen cols und rows eingespart werden, indem man die Auswertungen der Funktionen direkt in die Indexausdrücke übernimmt.
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information