Skip to main content
1-Visitor
April 22, 2013
Solved

Unresolved Error: Vector Creation

  • April 22, 2013
  • 1 reply
  • 2824 views

Hiya,

Kindly can anyone resolve error shown in the image below.

The code is simple creating a vector from random numbers. Before it was working fine, untill I added another for loop below.

error_str.jpg

Thanks and Regards

Best answer by AlanStevens

Near the top of the program structure you have time_err with a single subscript, i, so Mathcad thinks it's a vector. Near the bottom you have time_err with 2 sub scripts L and m so Mathcad thinks it's a matrix. Get these two consistent and the program should work.

Alan

1 reply

25-Diamond I
April 22, 2013

Delete the local assigment and both black stre and just leave the expression which is in red now.

1-Visitor
April 22, 2013

No change, same error. time_err.jpg

19-Tanzanite
April 22, 2013

Upload your worksheet. Mathcad's error messages aren't always very good at telling you what is wrong, and, in particular, telling you where something has gone wrong. (Have you right-clicked on the red area and chosen Trace Error?).

Alan