
Hi,
On 12/1/07, nisha kannookadan
"diff " would work if you could get the same formats and precisions.
What is "diff" ?
From my understanding:
If you can write the results of your computation into a file, write the output from MATLAB and then from your C++ program. Make sure you have follow the same order in writing the data to a file (with same formatting like spaces/newlines...) Use a program like GNU diff/kdiff3/windiff on the two output files you have to find the differences between them. Ideally, you should not see any difference. If you do notice a difference, check if the difference is negligible (you have to decide the precision you are expecting). The idea behind this is: A drive to improve performance _must_ not degrade the correctness of the solution. -dky -- Contents reflect my personal views only!