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

quasi 7 anni fa | 1

| accettato

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

quasi 7 anni fa | 0

Domanda


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

quasi 7 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 2 risposte | 0

2

risposte