Skip to main content
1-Visitor
May 1, 2012
Solved

Value Must Be a Vector/Variable Undefined

  • May 1, 2012
  • 3 replies
  • 10730 views

I'm currently working on a Mathcad worksheet that adds the sums of two vectors and uses their result to solve an equation, but the variable I have defined to be the solved value keeps giving me the error that it isn't defined. I tried to break formula apart and the vectors are returning the error message "value must be a vector." Any help anyone could provide would be greatly appreciated.

Thank you in advance.

Talina

Best answer by ValeryOchkov

See please the attach!

3 replies

1-Visitor
May 1, 2012

Striaght away I have found that epsilon[conc is not defined.

Mike

atbarajas1-VisitorAuthor
1-Visitor
May 1, 2012

Is it not allowed to just be a placeholder in a function?

1-Visitor
May 1, 2012

Ok yes I see. I think you need to go back through the calculation. It looks very complicated and hard to follow.

Instead of making all your equations functions with dependant variables, could you not define the iterated parameters as vectors at the top of your worksheet and work through that way?

Mike

19-Tanzanite
May 1, 2012

You are trying to combine vectors of different lengths. Firstly, you've defined c and epsilon.c as row vectors (Mathcad isn't really very keen on these - I'd redo them as column vectors if I were you). Secondly, they are a different length from vectors such as A.unc that you are trying to combine them with later.

Alan

atbarajas1-VisitorAuthor
1-Visitor
May 2, 2012

Thank you all so much for your help. I didn't realize that certain functions were spitting out scalars while others were still producing vectors. I've gone through and modified things so the functions are working as they're supposed to, but the solve block is still returning the error message that the variable is not defined. Any suggestions?

Thank you again,

Talina

24-Ruby IV
May 2, 2012
atbarajas1-VisitorAuthor
1-Visitor
May 2, 2012

Ah, I see. Thank you very much for help!

Talina