LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

MathScript Commands (question 2)

Hi again...this is with reference to previous thread raised. It seems that although the dlmread is functioning properly, the sortx isn't....I have attached the .m file (which I used to import into MathScript) and the data file. Perhaps any other experts and user 'ttr' can assist?

What I hope to achieve is when all data has been read and saved into a variable, I need the values be sorted in ascending order in their individual columns. PLease point out what am I doing wrong...Many thanks first
0 Kudos
Message 1 of 2
(6,101 Views)

Hi,

 

If you just want to read the data and sort it column-wise, then the following script should work

a = dlmread('plotdata.dlm', '      ');

b = sort(a);

b is same as a excpet that each column of b are in ascending order. I have tested your data file in LabVIEW 8.6.

0 Kudos
Message 2 of 2
(6,094 Views)