I have similar problem. Same code, exactly the same code gives different results in matlab script of labview and on matlab alone. Also sometimes the same script works and sometimes gives error. Is there any way to make results more reliable?
... you just added to a 5 year old thread. When you say "same code", do you mean the same code as in the 5 year old thread above or some completely unrelated code which is the same in matlab and matlab script.
What is your LabVIEW version? What is your matlab version? How often is "sometimes"?
Can you attach an example that shows the problem? DId you try some of the suggestions mentioned above?
Attached are the graphs produced by matlab script in labview and in matlab.
The minimum of graph produced by matlab code is below 1 and that in labview is above 1.
Thanks a lot for your reply.
Sorry, I haven't quantified the "sometimes" yet.
It looks to me like you have the same picture, except that the results seem to be mirrored about the line Y=X. (the 45deg line).
You should check your code again and make sure it truly matches and you didn't flip your indices.
I agree, the 2D array seems transposed, while the axis assignment (offset,increment) are not transposed. You did not show any code, but that graph is formed most lkely ouside the matlab node. We need to see some code.