matlab-to-julia
matlab-to-julia copied to clipboard
Transposed not translated correctly
X = u*v';
is translated to X = u*v''
probably confuses it with a string
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!
Related: CKtheta = chol(Ktheta,'lower')';
is wrongly translated to CKtheta = chol(Ktheta,"lower')"
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