Community Profile

# Royi Avital

### Ben Gurion University

104 total contributions since 2011

View details...

Contributions in
View by

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

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

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

4 Monate ago | 1

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

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

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

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

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

8 Monate ago | 4 answers | 1

### 4

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

8 Monate ago | 0

What happened to the figure toolbar in R2018b? Why is it an axes toolbar? How can I put the buttons back?
I like this change. Remove the clutter. I guess it is also a step in the direction of having HTML based Figures.

9 Monate ago | 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> :...

etwa ein Jahr 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.

fast 2 Jahre 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)....

fast 2 Jahre ago | 1

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

fast 2 Jahre 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/...

etwa 2 Jahre 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 ...

etwa 2 Jahre 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...

etwa 2 Jahre 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 ...

mehr als 2 Jahre 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...

fast 3 Jahre ago | 2 answers | 0

### 2

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

fast 3 Jahre 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...

fast 3 Jahre 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...

fast 3 Jahre ago

Solved

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

fast 3 Jahre ago

Solved

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

fast 3 Jahre ago

Solved

Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

fast 3 Jahre ago

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

fast 3 Jahre ago

Solved

Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

fast 3 Jahre ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

fast 3 Jahre ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

fast 3 Jahre ago

Solved

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

fast 3 Jahre ago