06-29-2013 08:13 AM
I am passing a 1D array of size 1550 as input to DST function. I have also calculated DST of same array in matlab using 'dst' function. I got approximately same answer till 1399th element but after that answers of two varies abruptly. I tried hard but I am unable to find the solution. I am attaching the data file in which it can be clearly seen that at 1530th element there is a difference of sign also.
07-01-2013 01:43 PM - edited 07-01-2013 01:48 PM
Out of curiosity, have you tried another software, like Octave? When you have two software that is different, which one is incorrect?
Also, have you tried to use the DST function in LabVIEW directly?
Another think to keep in mind... When you try to run a sequence for so long, small round-off errors could be cummulative and show later on the analysis. Also, it depends on how you load the data into each software. Hopefully when moving the platforms, the string conversion would not truncate the number. The best is not using string, but some kind of binary format...
These are some ideas to check...