Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

Vectors and proraming in a fuction

$
0
0

Hi,

 

I have a function that is defined by different equations, based on an "if" statement. both the equations and the conditions depend on coefficients stored in vectors. I expect, as a result, a function that returns a vector.

 

I have tried several syntaxes, but I can't find one that works. Either i don't put the index, and the condition fails (comparing a scalar to a vector), or I put the index and the function fails to find a result (although, if I set the function parameter as a fixed variable, the content of the function is evaluated correctly).

 

Is there a proper syntax to get it to work ?

 

Thank you very much.


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>