Answered
How to fix: "Index exceeds matrix dimension"
You are not updating H(i+1) in your while loop. "i=1; H(i)=Hs;" This line creates an array named "H" of size [1, 1] whi...

6 years ago | 1

| accepted

Answered
How to XOR the pixel values of image with a matrix containing decimal numbers?
_"I am using color image."_ Lets say your input image is I. I = imread ('image.tif'); If you check the workspace aft...

6 years ago | 0

Question


How does bsxfun actually work ?
I tried to multiply two matrices using bsxfun. Here is a sample code. a = [0,1]; b = [1,2]; q = bsxfun(@times, a, b); ...

6 years ago | 2 answers | 0

2

answers

Question


How to obtain a path traced by a line plot which has been superimposed on an image ?
I have an image which has been divided into blocks of 2x2 pixels and a line plot of some randomized points. I want to superimpos...

9 years ago | 0 answers | 0

0

answers

Question


Error: subscripted assignment dimension mismatch during convolution.
I am writing a code for convolution of rows of a 256x256 matrix with a column vector consisting entirely of ones. But I am getti...

10 years ago | 2 answers | 0

2

answers

Question


Is there any way of stopping the execution of a program in the middle ?
My code is now running for 10 minutes. Is there any way i can pause or stop the execution and see the current status of my va...

10 years ago | 1 answer | 0

1

answer

Question


How to create a vector in which numbers increase at first, then remain constant, then reduce back to 1 ?
I need to create vectors of length 255 which have the following format: {1,2,3,4,5,5,5,5,......,5,5,4,3,2,1} {1,2,3,4,5,...

10 years ago | 3 answers | 0

3

answers

Question


How to plot a 2D histogram of pixel pairs ?
I have a 'M by 2' matrix consisting of pixel pairs in an image. I want to find which pixel pairs occur more frequently. For this...

10 years ago | 2 answers | 0

2

answers

Question


Is it normal for a code with 2 nested for loops to run for more than 2 hours ?
I have a color image and I am using two for loops to separate pixel pairs. Its been running for the past 2 hours. Is it normal ?...

10 years ago | 1 answer | 0

1

answer

Question


How do I know the frequency of each unique pair?
*Edited by Azzi after Shounak changed his question* I have a uint8 matrix nx2, I want to know the frequency of each unique pa...

10 years ago | 2 answers | 0

2

answers