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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Can someone tell why the three parameters in section 6 of attached file is coming up undefined?

ptc-5345203
1-Visitor

Can someone tell why the three parameters in section 6 of attached file is coming up undefined?

Can someone tell why the three parameters in section 6 of attached file is coming up undefined?

3 REPLIES 3
Werner_E
25-Diamond I
(To:ptc-5345203)

Because you confused vector/matrix index and literal index in your definitions.

If you type FTY.i:=... (thats the literal index) you define a single scalar variable. i is just a character which is part of the variable name.

If you type FTY[i:= you define the element of a vector. i has to be an integer variable greater or equal to zero (assuming ORIGIN = 0 as it is by default). So for example i:=2 and FTY[i:=111 would assign 111 to the third element of vector FTY. If FTY is not defined yet you create a column vector (0; 0; 111) that way.

You may also check if you really need that much global assignments.

I believe that my isssues came as a result of trying to define the following quantity : FTY to suscript m, where m has a suscript b. Does Mathcad allow such a structure?

Werner_E
25-Diamond I
(To:ptc-5345203)

You have to specify which kind of subscript, literal or vector.

I am not sure if you are demanding a vector consisting of vectors (nested vectors) or if you just want the index of the first vector to be an element of a second vector. Anyway, in both cases the answer is yes, its possible.

I guess you are looking for somethink like shown below and you would have to use vector indices only to do so (the parenthesis are made by MC automatically).

vect1.png

Announcements

Top Tags