<< Chapter < Page Chapter >> Page >
This module provides a link to the Mathworks tutorial on vectors and arrays, and adds a useful piece of information not covered in the tutorial using LabVIEW MathScript.

Vectors and arrays in labview mathscript

An excellent tutorial on how to use LABVIEW MATHSCRIPT's vector and array capabilities is at the Inside LABVIEW MATHSCRIPT Tutorial. Here you can view the general use of LABVIEW MATHSCIRPT and find usefull information about data handling capabilities such as arrays and vecotrs.

One useful method of accessing entire rows or entire columns of the matrix is not mentioned in the tutorial. Suppose that the matrix A is defined as >>A = [1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 20]A = 1 2 3 4 56 7 8 9 10 11 12 13 14 1516 17 18 19 20 An entire row of A can be obtained by specifying a single ":" as the column index: >>A(2,:) ans =6 7 8 9 10 Similarly, an entire column of A can be obtained by specifying a single ":" as the row index: >>A(:,3) ans =3 813 18

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Introduction to labview mathscript. OpenStax CNX. Aug 06, 2006 Download for free at http://cnx.org/content/col10370/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Introduction to labview mathscript' conversation and receive update notifications?

Ask