取消
显示结果 
搜索替代 
您的意思是: 

get matrix elements

i have  matrix ( 4 columns) and i want to  apply  different arithematic operations on each column .

how can i do that ???

thanks

0 项奖励
1 条消息(共 5 条)
3,016 次查看

Hi oi,

 

do you actually have a matrix or just a simple 2D array? That is quite a difference in LabVIEW, please use exactly the label that is shown in the context help! (Or show a picture or even better a VI!)

 

Use either IndexArray, GetSubmatrix - or simple autoindexing of a FOR loop!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 5 条)
3,015 次查看

i have matrix 51*4 and want to get each coloums as 1-D array??

0 项奖励
3 条消息(共 5 条)
3,005 次查看

Hi oi,

 

I already proposed several solutions. Have you tried any of them?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
4 条消息(共 5 条)
3,000 次查看

As mentioned, Index array allows you to get rows or colums of a 2D array if you leave one index disconnected.

 

To get columns, you need to wire the lower index of the two. Here's example code to get the first four columns of a 2D array.

 

 

How different are the arithmetic operations you want to apply? Can you show us a typical example? There are probably ways to do it all at once.

0 项奖励
5 条消息(共 5 条)
2,993 次查看