Comparing matrix and integer
Posted: Fri Jan 17, 2014 2:27 pm
Dear All,
I need to compare 1 by 1 matrix and an integer value.
com te = 10
com bandw0 = 2.6614*((a2*te).^0.2); *This bandw is defined as RECTANGULAR[REAL], but the dimension is 1 by 1.
if bandw0 .ge. te-2
com bandw = te-2
else com bandw = bandw0
The second line of this program gives me an error message of:
## SX27. Illegal Combination of Data Types for Operation
It seems not allowed to compare an integer and a matrix.
What do I need to do?
Thank you for your help.
Aaron
I need to compare 1 by 1 matrix and an integer value.
com te = 10
com bandw0 = 2.6614*((a2*te).^0.2); *This bandw is defined as RECTANGULAR[REAL], but the dimension is 1 by 1.
if bandw0 .ge. te-2
com bandw = te-2
else com bandw = bandw0
The second line of this program gives me an error message of:
## SX27. Illegal Combination of Data Types for Operation
It seems not allowed to compare an integer and a matrix.
What do I need to do?
Thank you for your help.
Aaron