Question

Web site preferences in help browser

I just installed R2021a, and selected the web option for the help. On every session, the first time I start the help browser (e....

2 months ago | 1 answer | 0

Answered

"Quality" property of VideoWriter object doesn't do anything. How to get higher quality mp4 video?

I have the same issue. The default quality is terrible, which makes the MPEG-4 format unusable for me.

"Quality" property of VideoWriter object doesn't do anything. How to get higher quality mp4 video?

I have the same issue. The default quality is terrible, which makes the MPEG-4 format unusable for me.

1 year ago | 0

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

2 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3 years ago

Solved

Max Change in Consecutive Elements

If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

3 years ago

Solved

Back to basics - mean of corner elements of a matrix

Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

3 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

3 years ago

Answered

Implementing Sobel Gradient without image package

kx= [1 ,0 ,-1; 2,0,-2; 1, 0 ,-1]; ky= [1,2,1; 0,0, 0; -1, -2 ,-1]; H = conv2(im2double(my_img),kx,'same'); ...

Implementing Sobel Gradient without image package

kx= [1 ,0 ,-1; 2,0,-2; 1, 0 ,-1]; ky= [1,2,1; 0,0, 0; -1, -2 ,-1]; H = conv2(im2double(my_img),kx,'same'); ...

3 years ago | 0

Answered

Need help resolving error "Index exceeds matrix dimensions"

Your problem is that the loop starts with x=0. You then try to access C(x). Arrays start indexing at 1 in MATLAB, so you can't h...

Need help resolving error "Index exceeds matrix dimensions"

Your problem is that the loop starts with x=0. You then try to access C(x). Arrays start indexing at 1 in MATLAB, so you can't h...

3 years ago | 0

Answered

How to binarize a signal?

Depends on the criteria you want to use to create your binary signal, but simply using a comparison operator on an array works. ...

How to binarize a signal?

Depends on the criteria you want to use to create your binary signal, but simply using a comparison operator on an array works. ...

3 years ago | 0

Question

Can I change the interpolation used in images shown in a GUI?

I often display images in a resizable GUI. The interpolation used on the image to make it fit in the specified axis provides poo...

3 years ago | 1 answer | 0