LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array derivative

Solved!
Go to solution

Ok, I thought about something like that. Just one more question to be sure: what do I do with those "partial partial derivatives" I get from every column/row to make one partial derivative? I repeat for every y=0,1,2...256, I receive 256 dZ/dx's and how do I combine them in one?

 

 

0 Kudos
Message 11 of 19
(1,802 Views)

@Oficmajster wrote:

... I receive 256 dZ/dx's and how do I combine them in one?


They are all independent, so you cannot really combine them without losing a lot of information. Please explain what you want at the end.....

0 Kudos
Message 12 of 19
(1,795 Views)

I think I need an array, cause I need to make a double integral of it later. I just combined those 1D arrays into one 2D array. One for dx, and one for dy. The result seems acceptable.

What do you mean by loosing a lot of information, and how can I prevent that?

0 Kudos
Message 13 of 19
(1,790 Views)

You did not say what you mean by "combine into one". One number is insufficient, but one complex 2D array can hold the data just fine. Just wire your two arrays to the RE and IM input of RE/IM to complex, for example.

0 Kudos
Message 14 of 19
(1,788 Views)

Ok... so if I took my 1D arrays and simply used Insert Into Array.vi to combine them into one 2D array, using FOR loop? And the very same algorithm with the second partial derivative. Der.JPG

0 Kudos
Message 15 of 19
(1,784 Views)
Solution
Accepted by topic author Oficmajster

Way too much code!

 

You can autoindex on the 2D array at the left loop boundary (transpose if needed), then autoindex the 1D result on the right side to generate the 2D array. Don't wire N, it will be automatic based on the array size.

0 Kudos
Message 16 of 19
(1,781 Views)

Roger that.

But this 2D array is my partial derivative, right? I mean: is it mathematically correct, that this array represent a function that is partial derivative from my basic function?

Sorry for taking so much of your time. You helped me a lot. Thanks 🙂

0 Kudos
Message 17 of 19
(1,776 Views)

Here's one possible solution...

 

 

0 Kudos
Message 18 of 19
(1,770 Views)

Thanks a lot!

0 Kudos
Message 19 of 19
(1,746 Views)