# Julia for MATLAB users club

**URL:** https://discourse.julialang.org/t/julia-for-matlab-users-club/12872
**Category:** General Usage
**Tags:** proposal, matlab
**Created:** [August 4, 2018, 12:40am UTC](https://discourse.julialang.org/t/julia-for-matlab-users-club/12872 "2018-08-04T00:40:24Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)
#### Post date: [August 7, 2018, 4:06pm UTC](https://discourse.julialang.org/t/julia-for-matlab-users-club/12872/12 "2018-08-07T16:06:53Z")

</div>

> [@Why \`eye\` has been deprecated?](https://discourse.julialang.org/t/why-eye-has-been-deprecated/12824/94):
>
> [https://github.com/JuliaLang/julia/pull/28456/commits/3b84ab46d4ec1aab70ee537e0d1a704e0df84b10](https://github.com/JuliaLang/julia/pull/28456/commits/3b84ab46d4ec1aab70ee537e0d1a704e0df84b10).  
> 👋 there was a really witty comment in ‘stdlib/LinearAlgebra/src/deprecated.jl’ (gone now too):
> 
> ```julia
> - ## goodbeye, eye!
> - export eye
> - function eye(m::Integer)
> - depwarn(string( ...
> - ...
> 
> ```

I think we have the first function name for `MatlabPuns.jl`:

```julia
export goodbeye
function goodbeye(m::Integer)
    return Matrix{Float64}(I, m, m)
end
function goodbeye(::Type{T}, m::Integer) where T
    return Matrix{T}(I, m, m)
end
function goodbeye(m::Integer, n::Integer)
    return Matrix{Float64}(I, m, n)
end
function goodbeye(::Type{T}, m::Integer, n::Integer) where T
    return Matrix{T}(I, m, n)
end
function goodbeye(A::AbstractMatrix{T}) where T
    return Matrix(one(T)I, size(A))
end
function goodbeye(::Type{Diagonal{T}}, n::Int) where T
    return Diagonal{T}(I, n)
end

```

Hmm, what others would work?

- `linspace` → `linspacedout`
- `diagm` → `diagmeh`
- `flipdim` → `flippingoutdim`
- `eig` → `whyohwhyg`
- `sum(A, n)` → `dimsum(A, n)`

… actually that last one kind of makes sense… 😛

---

_[View the full topic](https://discourse.julialang.org/t/julia-for-matlab-users-club/12872)._
