Skip to main content
1-Visitor
September 25, 2020
Solved

Retrieving values from Matrix to function in Solve Block?

  • September 25, 2020
  • 1 reply
  • 1386 views

I'm fairly new to mathcad and I am hoping this is a simple answer. Is it possible to use values from a matrix to use in a function inside a solve block? I attached the file. Sorry for the mess, just wanting to practice and learn. I'm trying to call the values for Ta in the matrix to the function.

Best answer by Werner_E

The first step is to turn the vector T.a into a continuos function. I used simple linear interpolation and called the function Ta.

This function is now used in the solve block and thats it. I just changed the resolution of the range variable "time" which you used for plotting and changed the sacling of the plot to be able to show the values of T.a as well.

Werner_E_0-1601028204467.png

 

P6 sheet attached

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
September 25, 2020

The first step is to turn the vector T.a into a continuos function. I used simple linear interpolation and called the function Ta.

This function is now used in the solve block and thats it. I just changed the resolution of the range variable "time" which you used for plotting and changed the sacling of the plot to be able to show the values of T.a as well.

Werner_E_0-1601028204467.png

 

P6 sheet attached

 

1-Visitor
September 27, 2020

Thank you Werner_E! Now I can work the actual equations and see if I can get both temps to graph from the solve block. Tremendous help!