Turn on suggestions

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

Showing results for

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

Showing results for

** Community Tip** - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question.
X

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

Aug 03, 2020
07:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 03, 2020
07:09 AM

Node analysis matrices with input array

Hello,

I tried to do a node analysis with a resistor matrix. The input of the voltage matrix should be variable, therefor I introduced an array with voltages. After the solver I get an error "This value must be scalar or a matrix.". What must I do to get the rigth result, doing the calculation without array works.

Thanks

Labels:

- Tags:
- matrices

6 REPLIES 6

Aug 03, 2020
07:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 03, 2020
07:58 AM

Try please

- Tags:
- ry please

Aug 03, 2020
08:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 03, 2020
08:02 AM

This would not help with the desired calculation

Aug 03, 2020
08:01 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 03, 2020
08:01 AM

Your function M.Unom(V.bat) makes use of V.in and V.in is a range (not a vector). The way you use it it has to be a single scalar.

Always setup all your calculations for single scalar values and make them functions in the variable you'd like to vary later.

After you have defined all your calculations, you define a vector (not a range) for all those variable values and call your function with this range as argument. Don't forget to vectorize (the arrow over the expression) that function call.

Because of the vectorization used it seems to be necessary to define a separate auxiliary function to get access to the n-th element of the result vector of the solve block function. As an alternative you may also turn U.ADC into a function.

MC15 worksheet attached

BTW, there is still an open question of yours which you did not came back to

Aug 03, 2020
10:56 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 03, 2020
10:56 AM

Hi,

you could simply do the following:

Aug 04, 2020
05:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 04, 2020
05:20 AM

Hello,

thank you it works, great 🙂

If I now want to put also Rmin and Rmax (different R matrices) values to get the ADCmin and ADCmax values

tolerances from my nominal values, is there a simple chance to do this in one calculation

or has this to be done in two. How to combine if I write the calculation three times for min nom and max.

Thank you

Aug 04, 2020
10:53 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Aug 04, 2020
10:53 AM

in this regard there is a bit of theory to apply, if you want to do things right: