range variable won't work: "must be a scalar or matrix
range variable won't work: "must be a scalar or matrix
(OP)
i] is the variable, however when put in an equation, mathcad says "this value must be scalar or a matrix"
I have followed the steps on the PTC tutorial website videos but still no luck despite doing exactly what they're doing.
Attached is a screenshot. Please help!
Thanks
I have followed the steps on the PTC tutorial website videos but still no luck despite doing exactly what they're doing.
Attached is a screenshot. Please help!
Thanks
RE: range variable won't work: "must be a scalar or matrix
There can be quite marked functional differences between objects that look typographically identical. What I think you have done is use the subscript button to enter i on the left hand side of the definition. What you should have used is the matrix index operator ... typing 'x' then '[' then 'i' should give you the result you want. The subscript button allows you to create a name with a subscripted part, such as xinit meaning, say, the scalar variable holding the initial value of x rather than a vector element with index init
RE: range variable won't work: "must be a scalar or matrix
RE: range variable won't work: "must be a scalar or matrix
you are right in that x= would be the simplest form to show x's value. However, xi is a valid form and may be useful when one only wants to display, say, the first 5 values (i:=0..4) or every other value (i:=0,2..last(x)).