Community Profile Royi Avital

Ben Gurion University

Last seen: 8 giorni ago Active since 2011

Statistics

All
• • • • • • • • • • • • Content Feed

View by

Question

Convert a LayerGraph into a DAGNetwork - Validate and Initialize the Net
In theory, the function assembleNetwork() should convert a LayerGraph into a DAGNetwork. Yet in practice, it doesn't always wor...

circa 2 mesi ago | 1 answer | 0

1

Since IMGUR uses REST based API you can do it in MATLAB. Best way to start is trying to replicate the Python library: IMGUR P...

circa un anno ago | 0

How do I initialize a complex array to zeros in MATLAB?
In later versions one could do something like vB = zeros(3, 1, 'like', 1j);.

circa un anno ago | 0

How can I set a custom path in Matlab R2017a on MacOS?
You should use setenv() to set the path. Pay attention that usually you want to add something to the path and not override it. ...

oltre un anno ago | 1

| accepted

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 ...

oltre un anno ago | 0

| accepted

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...

oltre un anno ago | 1

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...

oltre un anno 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 ...

oltre un anno ago | 3 answers | 1

3

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...

circa 2 anni 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...

circa 2 anni ago | 3 answers | 1

3

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. ...

oltre 2 anni ago | 0 answers | 0

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...

oltre 2 anni ago | 1 answer | 0

1

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?...

oltre 2 anni ago | 5 answers | 2

5

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...

oltre 2 anni ago | 2

SuiteSparse Installation: Cannot open include file: 'regex.h'
Why would you need SuiteSparse in MATLAB? I though MATLAB uses SuiteSparse to begin with.

oltre 2 anni 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...

circa 3 anni ago | 0 answers | 0

0

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...

circa 3 anni ago | 1

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...

circa 3 anni ago | 4 answers | 1

4

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> :...

oltre 3 anni ago | 1

Functional form of the colon (:) operator?
I really wish MATLAB would add function to vectorize arrays into column vector as the colon operator does.

oltre 4 anni ago | 0

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)....

oltre 4 anni ago | 5

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...

oltre 4 anni 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/...

oltre 4 anni ago | 2 answers | 0

2

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 ...

oltre 4 anni ago | 0

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...

oltre 4 anni ago | 0

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 ...

oltre 4 anni 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...

circa 5 anni ago | 2 answers | 0

2

Can any body tell me how to implement KSVD in matlab?
Here is a function which implements the K-SVD algorithm. function [ mD ] = DL_KSVD( mD, mX, paramCardinality ) numberO...

circa 6 anni ago | 0

Linear Least Squares With 2 Inequality Constraints
I created a solution. It can be found here: http://math.stackexchange.com/a/1403593/33

oltre 6 anni ago | 0

| accepted

Question

Linear Least Squares With 2 Inequality Constraints
Hello, I would like to know how can I solve the following Linear Least Squares problem: arg min(x) (Ax - b)'(Ax - b) s....

oltre 6 anni ago | 2 answers | 0