# \#matlab

**URL:** https://discourse.julialang.org/tag/matlab/89.md?page=3

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 4

---

## [How to use matplotlib in julia? without using python backend?](https://discourse.julialang.org/t/how-to-use-matplotlib-in-julia-without-using-python-backend/39270)

<div class="topic-metadata">

**Author:** [@Neeraj\_Verma\_ASETRAI](https://discourse.julialang.org/u/Neeraj_Verma_ASETRAI)\
**Replies:** 2\
**Last updated:** [May 11, 2020, 12:39pm UTC](https://discourse.julialang.org/t/how-to-use-matplotlib-in-julia-without-using-python-backend/39270 "2020-05-11T12:39:01Z")

</div>

How i can use matplotlib graph plotting tool with julia native without using any python backend? please help me out…

---

## [Embed Matlab function files in Julia](https://discourse.julialang.org/t/embed-matlab-function-files-in-julia/34312)

<div class="topic-metadata">

**Author:** [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Replies:** 3\
**Last updated:** [February 8, 2020, 1:13pm UTC](https://discourse.julialang.org/t/embed-matlab-function-files-in-julia/34312 "2020-02-08T13:13:27Z")

</div>

I would like to call some custom Matlab functions in julia which are defined in separate .m file. As MVP, consider the file Cps.m which contains the following code function C = Cps(T) % solid maltodextrin % from Jakob…

---

## [Propagating exceptions from MATLAB to Julia](https://discourse.julialang.org/t/propagating-exceptions-from-matlab-to-julia/24177)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 2:34pm UTC](https://discourse.julialang.org/t/propagating-exceptions-from-matlab-to-julia/24177 "2019-05-13T14:34:50Z")

</div>

I’ve posted an issue mentioning this in MATLAB.jl a few months ago, but maybe someone here has an idea. I’m looking for a way to have exceptions inside Matlab propagate to Julia. Right now they might elicit some printout…

---

## [Read text file julia: fscanf in Julia:](https://discourse.julialang.org/t/read-text-file-julia-fscanf-in-julia/23980)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 5\
**Last updated:** [May 7, 2019, 11:34pm UTC](https://discourse.julialang.org/t/read-text-file-julia-fscanf-in-julia/23980 "2019-05-07T23:34:38Z")

</div>

Hi everyone, How can I read text file in the following way (matlab) in Julia? or how can we use the similar function A = fscanf(fileID , formatSpec , sizeA ) in Julia? Matlab global ttn; ttn= fopen('test.txt','r'); %…

---

## [Convert Matlab Code to Julia 1.0](https://discourse.julialang.org/t/convert-matlab-code-to-julia-1-0/21529)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 22\
**Last updated:** [April 8, 2019, 9:35am UTC](https://discourse.julialang.org/t/convert-matlab-code-to-julia-1-0/21529 "2019-04-08T09:35:26Z")

</div>

Dear all, I want to ask, which best tool that I can convert Matlab code to Julia, now some tools are not supported any more in GitHub…… Best regards

---

## [MethodError: no method matching binomial](https://discourse.julialang.org/t/methoderror-no-method-matching-binomial/21874)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 4\
**Last updated:** [March 14, 2019, 5:25pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-binomial/21874 "2019-03-14T17:25:32Z")

</div>

Dear all, How can I fix MethodError: no method matching binomial: pr = 5.6783 for i = 1:round(pr/2) n = 1/binomial(pr,i) end Best

---

## [Sum dimensions of matrix](https://discourse.julialang.org/t/sum-dimensions-of-matrix/21098)

<div class="topic-metadata">

**Author:** [@nik.ltin](https://discourse.julialang.org/u/nik.ltin)\
**Replies:** 11\
**Last updated:** [February 23, 2019, 2:25pm UTC](https://discourse.julialang.org/t/sum-dimensions-of-matrix/21098 "2019-02-23T14:25:20Z")

</div>

Hi there, A bit new to Julia so this might be a very basic question: I have a file with a 3 dimensional array (x,y,z), and I’d like to sum certain values from the z dimension to later on pull from and graph. For example…

---

## [Plotting .mat data](https://discourse.julialang.org/t/plotting-mat-data/19600)

<div class="topic-metadata">

**Author:** [@svpillai](https://discourse.julialang.org/u/svpillai)\
**Replies:** 6\
**Last updated:** [January 14, 2019, 10:18am UTC](https://discourse.julialang.org/t/plotting-mat-data/19600 "2019-01-14T10:18:50Z")

</div>

I have a .mat file that I’ve opened using Matlab.jl with read\_matfile(filename) (is there a better way/command to load .mat data on to Julia?), and I need to plot certain rows of the .mat file. How do I do so? using Plot…

---

## [Multiply many-matrices by many-vectors](https://discourse.julialang.org/t/multiply-many-matrices-by-many-vectors/18542)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 33\
**Last updated:** [December 14, 2018, 12:44am UTC](https://discourse.julialang.org/t/multiply-many-matrices-by-many-vectors/18542 "2018-12-14T00:44:10Z")

</div>

All, I have a critical portion of code that essentially involves the multiplication of many pre-computed matrices by many pre-computed vectors. Each matrix multiplies the same, entire list of vectors. Each matrix is t…

---

## [Surface Plots](https://discourse.julialang.org/t/surface-plots/7161)

<div class="topic-metadata">

**Author:** [@Romero\_Azzalini](https://discourse.julialang.org/u/Romero_Azzalini)\
**Replies:** 7\
**Last updated:** [November 2, 2018, 9:15pm UTC](https://discourse.julialang.org/t/surface-plots/7161 "2018-11-02T21:15:29Z")

</div>

Hi, has anybody an idea how to make such surface plots I have stored the data in files (one format is x-y-z component). But I have also the format (600x600 grid with the entry of every point in the grid). For the lat…

---

## [Error in "using MAT"](https://discourse.julialang.org/t/error-in-using-mat/14143)

<div class="topic-metadata">

**Author:** [@complexfilter](https://discourse.julialang.org/u/complexfilter)\
**Replies:** 5\
**Last updated:** [October 1, 2018, 7:53am UTC](https://discourse.julialang.org/t/error-in-using-mat/14143 "2018-10-01T07:53:34Z")

</div>

I have trouble using MAT in Julia 1.0.0 \[ Info:\* Precompiling MAT \[23992714-dd62-5051-b70f-ba57cb901cac\] ERROR: LoadError: LoadError: syntax: extra token “MatlabHDF5File” after end of expression Stacktrace: \[1\] inclu…

---

## [The input number of one function](https://discourse.julialang.org/t/the-input-number-of-one-function/15449)

<div class="topic-metadata">

**Author:** [@sysk\_msk](https://discourse.julialang.org/u/sysk_msk)\
**Replies:** 5\
**Last updated:** [September 25, 2018, 7:24am UTC](https://discourse.julialang.org/t/the-input-number-of-one-function/15449 "2018-09-25T07:24:01Z")

</div>

I want to let Julia to known the number of parameters which I have provided in one function. Like nargin in MATLAB. What should I do?

---

## [How to accelerate matrix operations(multiplication, add, inverse) in a for loop?](https://discourse.julialang.org/t/how-to-accelerate-matrix-operations-multiplication-add-inverse-in-a-for-loop/14157)

<div class="topic-metadata">

**Author:** [@complexfilter](https://discourse.julialang.org/u/complexfilter)\
**Replies:** 22\
**Last updated:** [September 2, 2018, 6:35am UTC](https://discourse.julialang.org/t/how-to-accelerate-matrix-operations-multiplication-add-inverse-in-a-for-loop/14157 "2018-09-02T06:35:49Z")

</div>

How to accelerate typical matrix operations in a for loop? I am currently rewriting my Matlab code to Julia. However, I find it only 3.5X the speed as Matlab. Are there any ways to further improve the Julia speed? Like…

---

## [Any sorting function in Julia that is as fast as Matlab's maxk?](https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105)

<div class="topic-metadata">

**Author:** [@complexfilter](https://discourse.julialang.org/u/complexfilter)\
**Replies:** 7\
**Last updated:** [August 28, 2018, 4:35am UTC](https://discourse.julialang.org/t/any-sorting-function-in-julia-that-is-as-fast-as-matlabs-maxk/14105 "2018-08-28T04:35:06Z")

</div>

I found that maxk in Matlab is way faster(4.7 times in Matlab 2018a) than the maxk in Julia. QQ=randn(1000,1); tic; for i=1:10000 \[~,ind\]=maxk(QQ,10); end toc; and tic(); for i=1:10000 ind1=partialsortperm(Q, 1:10, re…

---

## [Julia for MATLAB users club](https://discourse.julialang.org/t/julia-for-matlab-users-club/12872)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 12\
**Last updated:** [August 9, 2018, 2:55pm UTC](https://discourse.julialang.org/t/julia-for-matlab-users-club/12872 "2018-08-09T14:55:18Z")

</div>

… or maybe: posse? armada? crew? gang? task force? K-Pop group? :stuck\_out\_tongue: Continuing the discussion from Why \`eye\` has been deprecated?: ^ I proposed some sort of SIG for MATLAB users who like me are coming fr…

---

## [Embedding Julia in MATLAB mex: memory leaks ](https://discourse.julialang.org/t/embedding-julia-in-matlab-mex-memory-leaks/12842)

<div class="topic-metadata">

**Author:** [@nicrummel](https://discourse.julialang.org/u/nicrummel)\
**Replies:** 0\
**Last updated:** [August 3, 2018, 1:10am UTC](https://discourse.julialang.org/t/embedding-julia-in-matlab-mex-memory-leaks/12842 "2018-08-03T01:10:42Z")

</div>

I am writing some simple MATLAB mex interfaces that allow me to pass large amounts of data between Julia and MATLAB the two with as little copying as possible. I was hoping to gain some insight into how to debug code tha…

---

## [Category for migration from other languages](https://discourse.julialang.org/t/category-for-migration-from-other-languages/12131)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 6\
**Last updated:** [July 22, 2018, 2:15pm UTC](https://discourse.julialang.org/t/category-for-migration-from-other-languages/12131 "2018-07-22T14:15:07Z")

</div>

Perhaps already discussed–but if so I can’t find it–can we add a category for topics about migration to Julia from other languages like Python and MATLAB, and perhaps subcategories for the different languages being migra…

---

## [Pouring gcc-8.1.0.high\_sierra failed](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974)

<div class="topic-metadata">

**Author:** [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Replies:** 5\
**Last updated:** [June 5, 2018, 3:55pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974 "2018-06-05T15:55:18Z")

</div>

Hi there, (not sure this is the correct way or place to ask for this…) I just started playing within Julia, and I wanted to load a .mat file. So I tried to add the MAT package by typing Pkg.add("MAT"), but then during …

---

## [Sparse matrix-vector product: much more slow than Matlab](https://discourse.julialang.org/t/sparse-matrix-vector-product-much-more-slow-than-matlab/7840)

<div class="topic-metadata">

**Author:** [@hongyan](https://discourse.julialang.org/u/hongyan)\
**Replies:** 24\
**Last updated:** [December 20, 2017, 10:13am UTC](https://discourse.julialang.org/t/sparse-matrix-vector-product-much-more-slow-than-matlab/7840 "2017-12-20T10:13:56Z")

</div>

Hi guys, I’m very new in Julia and recently I’m doing some sparse matrix-vector calculations and want to transfer to Julia from Matlab. It turns out for the same codes, it takes Matlab about 2 seconds, but about 98 seco…

---

## [MAT.jl or HDF5.jl?](https://discourse.julialang.org/t/mat-jl-or-hdf5-jl/7075)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 3\
**Last updated:** [November 15, 2017, 3:21pm UTC](https://discourse.julialang.org/t/mat-jl-or-hdf5-jl/7075 "2017-11-15T15:21:55Z")

</div>

It’s not obvious which of these one should reach for first. I imagine the answer may be “it depends” but supposing you just have a .mat file drop in your lap what do you try first?

---

## [ERROR: LoadError: syntax: missing separator in array expression](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616)

<div class="topic-metadata">

**Author:** [@andrea](https://discourse.julialang.org/u/andrea)\
**Replies:** 2\
**Last updated:** [January 21, 2017, 8:39pm UTC](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616 "2017-01-21T20:39:23Z")

</div>

I’m pretty new in Julia: I’ve to integrate some MatLab code…I found an automatic ttranslator from MatLab to Julia. after the translation I got that error…on this line of code… fprintf(f\_initial,"#g ",x\[:,1)\] where x wa…

[Previous page](https://discourse.julialang.org/tag/matlab/89.md?match_all_tags=true&page=2&tags%5B%5D=matlab)
