# How to conduct multiple steps within Matlab using MATLAB.jl?

**URL:** <https://discourse.julialang.org/t/how-to-conduct-multiple-steps-within-matlab-using-matlab-jl/70116>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 20, 2021, 9:09pm UTC](https://discourse.julialang.org/t/how-to-conduct-multiple-steps-within-matlab-using-matlab-jl/70116 "2021-10-20T21:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leon](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@leon](https://discourse.julialang.org/u/leon)\
**Post date:** [October 20, 2021, 9:09pm UTC](https://discourse.julialang.org/t/how-to-conduct-multiple-steps-within-matlab-using-matlab-jl/70116/1 "2021-10-20T21:09:14Z")

</div>

I have a Matlab table called `T1` stored in the file `F1`. Below is what I’m trying to do using MATLAB.jl, but it does not work. What did I do wrong?

```julia
using MATLAB
F1 = "/Path/Test.mat";
@mput F1;
eval_string("load F1;");
eval_string("A = T1;"); 
eval_string("
T0 = horzcat(A.Cruise, A.Station, A.temperature, A.oxygen);
"); @mget T0;

```

Thank you!

---

<div class="post-metadata">

**Author:** ![groot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/groot/32/13081_2.png) [@groot](https://discourse.julialang.org/u/groot)\
**Post date:** [October 20, 2021, 10:59pm UTC](https://discourse.julialang.org/t/how-to-conduct-multiple-steps-within-matlab-using-matlab-jl/70116/2 "2021-10-20T22:59:17Z")

</div>

try

```julia
mat"""
    $u = $x + $y
    $v = $x - $y
"""

```

see here [https://github.com/JuliaInterop/MATLAB.jl#the-mat-custom-string-literal](https://github.com/JuliaInterop/MATLAB.jl#the-mat-custom-string-literal) for more information
