LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete array elements and resize matrix

Solved!
Go to solution

Hello, I'm new to Labview so I am struggling with some ideas. I have the following matrix

A=[1   2   3    4  

      5   6   7    8  

      9 10 11 12 

     13 14 15 16]

 

I want to obtain only the following resized matrix with the elements 6, 7 10 and 11, i.e.

B=[ 6    7

      10 11]

 

I appreciate your help

 

 

0 Kudos
Message 1 of 5
(2,741 Views)
Solution
Accepted by topic author Fco1235

On the Array => Matrix pallette, there is a function to get a subMatrix. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 2 of 5
(2,730 Views)

If a 2D array, use the Array Subset.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,720 Views)

Hi,

aputman is right. That function will get you the subset you need if you are working on a matrix. I would also say that you have to remember that columns and rows are 0 indexed.

Kind Regards,

Applications Engineer
National Instruments UK & Ireland

Message 4 of 5
(2,679 Views)