Get Help

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Calculating matrices with a a set of numbers in an...

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Showing results for

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-20-2020
05:18 AM

01-20-2020
05:18 AM

Calculating matrices with a a set of numbers in an array

Hello,

I tried to calculate a matrices with a matrix that includes a variable with a set of numbers.

Putting an array instead of a constant number ( Vbat -->M1,1) to the matrix the solver tells the error

"This variable is undefined". Is it possible like I tried or is there another solution to calculate the

same matrix again and again in an loop and set different given values, how to extract the results?

I found some examples but I don´t know how to transfer to my problem.

Thank you

Labels:

2 REPLIES 2

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-20-2020
06:39 PM

01-20-2020
06:39 PM

Re: Calculating matrices with a a set of numbers in an array

Even for a single value of M[1,1 your solve block yield 7 equations for just 6 variables. So usually no solution can be found.

You may use the "minerr" command instead of "find" or do without a solve block and use the "lsolve" command.

If that solves your problem, you may turn the solve block or the lsolve into a function of M[1,1 and call that function vectorized to get a nested vector of solutions.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-20-2020
06:42 PM

01-20-2020
06:42 PM

Re: Calculating matrices with a a set of numbers in an array

Here is what I was talking about

MC15 worksheet attached