-
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
How to multiply x axis by constant?
- This topic has 4 replies, 2 voices, and was last updated 15 years, 6 months ago by Richard Smith.
-
AuthorPosts
-
April 27, 2009 at 11:34 pm #12588Richard SmithParticipant
If I create a function where I multiply a signal dataset by a constant this multiplies the Y axis values.
How to I do the same but multiply only the X axis (for instance time) values?
Thanks.
April 27, 2009 at 11:34 pm #8251Richard SmithParticipantIf I create a function where I multiply a signal dataset by a constant this multiplies the Y axis values.
How to I do the same but multiply only the X axis (for instance time) values?
Thanks.
April 27, 2009 at 11:39 pm #8942Bernhard KantzParticipantUse the following FPScript code:
Dim factor = 2.0 Signal(data.Y, data.X * factor)
In this example data is the signal name.
April 28, 2009 at 12:29 am #8943Richard SmithParticipantThanks for the reply.
I tried this solution and it works perfectly, however, I am wondering what the “Dim factor = 2.0” does because also just tried “Signal(signalname.Y, signalname.X * factor” by itself that also works perfectly.
Thanks.
April 28, 2009 at 12:45 am #8944Bernhard KantzParticipantBoth notations are possible. The Dim statement declares a local variables and assigns a value to it. But you’re right. In this simple example you don’t need to use this variable.
-
AuthorPosts
- You must be logged in to reply to this topic.