Answered

Is there a way to Call Jupyter from Matlab?

I am not sure what do you mean by calling Jupyter from MATLAB. If you mean using MATLAB in Jupyter, it is certainly doable and ...

Is there a way to Call Jupyter from Matlab?

I am not sure what do you mean by calling Jupyter from MATLAB. If you mean using MATLAB in Jupyter, it is certainly doable and ...

3 mois ago | 0

| accepted

Submitted

1D Convolution by Overlap and Save - Optimized

Highly optimized implementation of the Overlap and Save method for Linear 1D Convolution. The function optimizes the optimal DFT...

3 mois ago | 2 downloads |

Answered

how to implement MILP in matlab

I also created a MEX wrapper around GNU Linear Programming Kit (GLPK). You may find it at https://www.mathworks.com/matlabcentr...

how to implement MILP in matlab

I also created a MEX wrapper around GNU Linear Programming Kit (GLPK). You may find it at https://www.mathworks.com/matlabcentr...

3 mois ago | 1

Submitted

GLPKMEX - GNU Linear Programming Kit (GLPK) MEX Generator

This MATLAB package generates a stand alone MEX file for the GNU Linear Programming Kit (GLPK). The MEX can solve Linear Program...

3 mois ago | 9 downloads |

Answered

Most Efficient Way to Construct the Matrices to Extract the Lower and Upper Triangle from a Vectorized Matrix

My current solution: function [ mLU ] = GenerateTriangleExtractorMatrix( numRows, triangleFlag, diagFlag ) EXTRACT_LOWER_TRI...

Most Efficient Way to Construct the Matrices to Extract the Lower and Upper Triangle from a Vectorized Matrix

My current solution: function [ mLU ] = GenerateTriangleExtractorMatrix( numRows, triangleFlag, diagFlag ) EXTRACT_LOWER_TRI...

4 mois ago | 0

Question

Most Efficient Way to Construct the Matrices to Extract the Lower and Upper Triangle from a Vectorized Matrix

Given a matrix and its vector form I am after the most efficient way to build the matrices and which extracts the lower and ...

4 mois ago | 3 answers | 1

Answered

Matlab equivalent to iPython Notebook

As written above, there is the option of MATLAB's Live Editor. I find it to be really limited vs. iPython Notebook. They are no...

Matlab equivalent to iPython Notebook

As written above, there is the option of MATLAB's Live Editor. I find it to be really limited vs. iPython Notebook. They are no...

7 mois ago | 0

Question

Generating Toeplitz Matrix which Matches the Convolution Shape Same

Given a filter vH I'm looking for vectors vR and vC such that: toeplitz(vC, vR) * vX = conv(vX, vH, 'same'); For instance, for...

7 mois ago | 3 answers | 1

Question

Faster and More Efficient `squareform()`

I'm using squareform(pdist(mX)) fairly often. The problem is squareform() is so slow it makes use of pdist2(mX, mX) faster. ...

10 mois ago | 0 answers | 0

Question

How to Imply the Input Array Dimensions to MATLAB Coder

Assuming I have a simple function in MATLAB: function [ mG ] = ProcessImage( mI ) %#codegen mG = edge(mI, 'Sobel', [], 'bo...

11 mois ago | 1 answer | 0

Question

MATLAB's JIT Engine

Do you think MATLAB's JIT engine is oudated? It does look so. Look at Julia Language: http://julialang.org/ What do you think?...

environ un an ago | 5 answers | 2

Answered

Can I use Microsoft Visual Studio 2019 with MATLAB R2019a or R2018b?

I'm not sure how the search for Compiler works for the mex command. From 5 minutes research I did I came to the conclusion it w...

Can I use Microsoft Visual Studio 2019 with MATLAB R2019a or R2018b?

I'm not sure how the search for Compiler works for the mex command. From 5 minutes research I did I came to the conclusion it w...

environ un an ago | 1

Answered

SuiteSparse Installation: Cannot open include file: 'regex.h'

Why would you need SuiteSparse in MATLAB? I though MATLAB uses SuiteSparse to begin with.

SuiteSparse Installation: Cannot open include file: 'regex.h'

Why would you need SuiteSparse in MATLAB? I though MATLAB uses SuiteSparse to begin with.

plus d'un an ago | 0

Question

Improving Speed and Reducing Memory Consumption with Creation of 2D Sparse Convolution Matrix

In a previous question of mine, Creating Convolution Matrix of 2D Kernel for Different Shapes of Convolution, among answers of t...

plus d'un an ago | 0 answers | 0

Answered

Creating Convolution Matrix of 2D Kernel for Different Shapes of Convolution

Here is my solution which build Doubly Block Toeplitz Matrix: function [ mK ] = Create2DKernelConvMtxSparse( mH, numRows, numCo...

Creating Convolution Matrix of 2D Kernel for Different Shapes of Convolution

Here is my solution which build Doubly Block Toeplitz Matrix: function [ mK ] = Create2DKernelConvMtxSparse( mH, numRows, numCo...

plus d'un an ago | 1

Solved

Generate Convolution Matrix of 2D Kernel with Different Convolution Shapes (Full, Same, Valid)

In this problem the challenge is to build the Matrix Form equivalent of the function `conv2()` of MATLAB. The function to be ...

plus d'un an ago

Question

Creating Convolution Matrix of 2D Kernel for Different Shapes of Convolution

MATLAB, for thos who have access to Image Processing Toolbox offers the function convmtx2(). Yet there are 2 issues: It is onl...

plus d'un an ago | 4 answers | 1

Problem

Generate Convolution Matrix of 2D Kernel with Different Convolution Shapes (Full, Same, Valid)

In this problem the challenge is to build the Matrix Form equivalent of the function `conv2()` of MATLAB. The function to be ...

plus d'un an ago | 0 | 3 solvers

Answered

How can I determine whether a string contains a substring?

I guess that since MATLAB R2016b it is recommended to use <https://www.mathworks.com/help/matlab/ref/contains.html `contains`> :...

How can I determine whether a string contains a substring?

I guess that since MATLAB R2016b it is recommended to use <https://www.mathworks.com/help/matlab/ref/contains.html `contains`> :...

presque 2 ans ago | 1

Answered

Functional form of the colon (:) operator?

I really wish MATLAB would add function to vectorize arrays into column vector as the colon operator does.

Functional form of the colon (:) operator?

I really wish MATLAB would add function to vectorize arrays into column vector as the colon operator does.

presque 3 ans ago | 0

Answered

Change opacity of Lines

In newer versions of MATLAB you can do that easily using the Color property of the line. By default it is RGB array (1 x 3)....

Change opacity of Lines

In newer versions of MATLAB you can do that easily using the Color property of the line. By default it is RGB array (1 x 3)....

presque 3 ans ago | 1

Answered

GUI - Slider which has two slide bars

Maybe you meant a Range Slider which you can create as shown in <http://undocumentedmatlab.com/blog/sliders-in-matlab-gui Slider...

GUI - Slider which has two slide bars

Maybe you meant a Range Slider which you can create as shown in <http://undocumentedmatlab.com/blog/sliders-in-matlab-gui Slider...

presque 3 ans ago | 0

Question

Display Pixel Values in Image - Alternative to `showPixelValues()`

Hello, I would like to display an image and its pixel values in a similar manner to <https://www.mathworks.com/matlabcentral/...

presque 3 ans ago | 2 answers | 0

Answered

What is missing from MATLAB?

What I miss the most is better forum for the community. We need Math Equation support through MathJaX (Like in StackExchange ...

What is missing from MATLAB?

What I miss the most is better forum for the community. We need Math Equation support through MathJaX (Like in StackExchange ...

presque 3 ans ago | 0

Answered

How to perform KNN regression

At each point you want to calculate the value (x, y) find the K closest point (For x). Then average them to create the new va...

How to perform KNN regression

At each point you want to calculate the value (x, y) find the K closest point (For x). Then average them to create the new va...

presque 3 ans ago | 0

Answered

Averaging Overlapping Pixels in Sliding Window Operation

Another option would be: I = reshape(accumarray(mIdx(:), mZ(:), [(M * N), 1], @(x) mean(x)), [M, N]); Where `mZ` is the ...

Averaging Overlapping Pixels in Sliding Window Operation

Another option would be: I = reshape(accumarray(mIdx(:), mZ(:), [(M * N), 1], @(x) mean(x)), [M, N]); Where `mZ` is the ...

environ 3 ans ago | 0

Question

Saving Figure Data into a Matrix

Hello. I'm using 'image()' to display an image. I'm adding some annotations using text. I'd like to save the final resu...

plus de 3 ans ago | 2 answers | 0

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 3 ans ago

Solved

Bullseye Matrix

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

plus de 3 ans ago

Solved

Return the largest number that is adjacent to a zero

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

plus de 3 ans ago