JuliaInterop / MATLAB.jl

Calling MATLAB in Julia through MATLAB Engine
MIT License
270 stars 63 forks source link

Variable interpolation from Julia to Matlab: Treat adjoint vectors as row vectors #196

Open tqml opened 2 years ago

tqml commented 2 years ago

Currently adjoint vectors from Julia are converted to structs in MATBAL instead of a row-vector (which would make more sense).

Version: Julia 1.7.1 Package Version: MATLAB.jl v0.8.2

Minimum Example

# Create an adjoint vector
C = [1.0, 2.0]'

# Creates a struct
mat"""
a = $(C)
a
"""

# creates a row vector
mat"""
a = $(C')'
a
"""