# Using MATLAB in Julia

**URL:** https://discourse.julialang.org/t/using-matlab-in-julia/38790
**Category:** New to Julia
**Tags:** question
**Created:** [May 5, 2020, 7:27am UTC](https://discourse.julialang.org/t/using-matlab-in-julia/38790 "2020-05-05T07:27:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ashwin\_Sundarka](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashwin_sundarka/32/14552_2.png) [@Ashwin\_Sundarka](https://discourse.julialang.org/u/Ashwin_Sundarka)
#### Post date: [May 5, 2020, 7:27am UTC](https://discourse.julialang.org/t/using-matlab-in-julia/38790/1 "2020-05-05T07:27:11Z")

</div>

i have installed MATLAB and the package to my Julia as given in “[https://github.com/JuliaInterop/MATLAB.jl](https://github.com/JuliaInterop/MATLAB.jl)”

Now I am trying to run the example codes given here for a quick start.

for example this code:  
x = range(-10.0, stop=10.0, length=500)  
mat"plot($x, sin($x))" # evaluate a MATLAB function

is working perfectly.

But when I am running  
y = range(2.0, stop=3.0, length=500)  
mat"“”  
$u = $x + $y  
$v = $x - $y  
“”"  
@show u v

I am getting, “syntax: incomplete: invalid string syntax”

I am observing the problem is arising only when I am using the `mat""` custom string literal. What can be the issue? anyone has experience with it?

Thanks!

---

<div class="post-metadata">

### Author: ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)
#### Post date: [May 5, 2020, 10:25am UTC](https://discourse.julialang.org/t/using-matlab-in-julia/38790/2 "2020-05-05T10:25:57Z")

</div>

> [@Ashwin\_Sundarka](#):
>
> mat"“”  
> $u = $x + $y  
> $v = $x - $y  
> “”"

You are using the wrong double quotes `"` at the end of the string literal

Try

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

```
