cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Calculation with range variables

Sergey
15-Moonstone

Calculation with range variables

Hello.

 

I am having troubles with the outputs when the range variable "n" is used (file attached).

The range variable is defined from 2 to 6 with the step of 1. So there are 5 elements in 5x1 matrix.

But at some point during the calculation I get more than 5 outputs (parameters L_e, A_e, X_e, I_e and Pg.

What did I do wrong in my spreadsheet? I will appreciate any feedback.

 

Best regards, Sergey

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Hi Sergey,

Never confuse a range index with a vector of scalar values.  A range is not a variable it is an index.

Have substituted ni as the range index for addressing or indexing the values in the n scalar column vector variable

Cheers

Terry

 

View solution in original post

4 REPLIES 4

Hi Sergey,

Never confuse a range index with a vector of scalar values.  A range is not a variable it is an index.

Have substituted ni as the range index for addressing or indexing the values in the n scalar column vector variable

Cheers

Terry

 

Thank you, Terry.

 

I get what I did wrong. Will make sure to remember it.

 

Best regards, Sergey

ttokoro
20-Turquoise
(To:Sergey)

image.pngimage.png

Sergey
15-Moonstone
(To:ttokoro)

Thank you, sir.

Announcements

Top Tags