LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
mark.campanelli

Improved vector/array/matrix initialization

Status: Already Implemented

You can use the Ramp functions already present in LabVIEW to achieve this functionality.

It would be nice to have an easier way to initialize simple vectors such as v1= [1, 2, 3, 4, 5], v2= [-6, -4, -2, 0, 2, 4, 6], or v3= [0, 0.1, 0.2, ..., 0.9, 1.0]. In MATLAB, this is easily accomplished as v1= 1:5, v2= -6:2:6, and v3= 0:0.1:1. No ugly for loops are necessary! Likewise, MATLAB has many matrix/array construction funcitons such as repmat() and toeplitz(). (NOTE: I am using an older version of LabVIEW: 2009 SP1.)

2 Comments
RavensFan
Knight of NI

The Ramp functions already present in LabVIEW will do this for you.

Darren
Proven Zealot
Status changed to: Already Implemented

You can use the Ramp functions already present in LabVIEW to achieve this functionality.