matlab-to-julia icon indicating copy to clipboard operation
matlab-to-julia copied to clipboard

Transposed not translated correctly

Open baggepinnen opened this issue 5 years ago • 3 comments

X = u*v'; is translated to X = u*v'' probably confuses it with a string

baggepinnen avatar Apr 03 '19 04:04 baggepinnen

Hi! Thank you so much for this, and sorry about my delay in responding. The translator currently only translates quotes as quotes if they appear in pairs on the same line. If you just enter X = u*v'; on one line on its own, it shouldn't change the ' to a ". It's a tricky problem, determining whether something is a quote or a transposition. If you have any suggestions I would of course welcome them, or if you've noticed it doing this even when the quotation marks are not appearing in pairs on the same line. Sorry I don't have a better fix!

lakras avatar Apr 18 '19 01:04 lakras

Related: CKtheta = chol(Ktheta,'lower')'; is wrongly translated to CKtheta = chol(Ktheta,"lower')"

mattiasvillani avatar Jan 31 '22 19:01 mattiasvillani

The chol is probably a problem in itself, at least on sparse matrices, where Julia does things differently from Matlab with respect to the ordering. See for example: http://artadia.blogspot.com/2019/10/sparse-cholesky-decomposition-in-julia.html

mattiasvillani avatar Jan 31 '22 19:01 mattiasvillani