Question

How to morphologically open a binary image ?

Hello , i am trying to morphologically open(to decrease the retrieved area) a binary image . However i am getting a black image ...

11 days ago | 2 answers | 0

Question

How can i normalize a greyscale image?

Hello , I've seen many similar questions but i am still confused . I have a grayscale image and i want to normalize it.How can ...

12 days ago | 1 answer | 0

Question

Can i use imerode() function to perform top-hat transform?

Hello , is it possible to perform top-hat transform without using imtophat() . I was suggested to use only the function imerode...

14 days ago | 1 answer | 0

Question

What is the difference between conv2 and imfilter?

Hello , i am trying to convolute an image (512x512) with a filter (3x3) .For this process i am using both covv2() and imfilter(...

2 months ago | 2 answers | 0

Question

How can i use zero-padding in an image?

Hello , I have an image(512x512) and i want to do zero-padding in order to covolute it with a filter . The problem here is tha...

2 months ago | 2 answers | 0

Question

How can i implement subtraction without using for-loop ?

I have a vector J 1000x7 and a vector K 16x7 I want to take each row of J(one at a time) an subtract it from every row of K. ...

2 months ago | 1 answer | 0

Question

Is there a faster way to run my code?

Hello , i wrote the code bellow . Is there any faster and more efficient way to run this code (not using for-loop for example ...

2 months ago | 3 answers | 0

Question

How can i choose specific elements from matrix ?

Hello , i have a mat 3x3 like this one below: H=[001;110;010] I want to choose the elements that contain 2 or more zeros . H...

3 months ago | 0 answers | 0

Question

How can i create a sequence where the symbols have different probabilities?

Hello , I have 4 symbols 0,1,2,3 . How can i create a sequence with these symbols where every symbol should have each own pro...

5 months ago | 1 answer | 0

Answered

How can i find the index of specific value inside an array?

index=find(M==4) % M=[2 4 6 8]; returns the index 2 i wanted

How can i find the index of specific value inside an array?

index=find(M==4) % M=[2 4 6 8]; returns the index 2 i wanted

6 months ago | 0

| accepted

Question

How can i find the index of specific value inside an array?

I have an array lets say 1x4 with these values : [ 2 4 6 8 ] .How can i find the index that 4(index 2 of the array) is stored f...

6 months ago | 2 answers | 0

Question

How can i create a sequence that every symbol has the same probability as the others?

How can i create a sequence that contains the symbols 0 , 1 , 2 , 3 with the same probability 1/4? For example i created a seq...

6 months ago | 2 answers | 0

Question

How to add zeros in front of an array

Hello , i want to add zeros in front of an array but i want to do that for 3 times and each time the zeros are increasing by1 ....

11 months ago | 1 answer | 0

Question

How can i multiply cell arrays?

Hello , i want to multiply an array H which is 2x2 cell array (each cell contains a 1x500 array) with an array X which is 2x1 a...

12 months ago | 1 answer | 0

Question

How to create a 2x2 matrix?

Hello , i want to create a 2x2 matrix like that : , h is 2x500 matrix . So , i have to create a 2x2 matrix that each cell co...

12 months ago | 2 answers | 0

Question

How can i implement maximum ratio combining method(MRC)?

Hello i want to implement maximum ratio combining . I have 2 antennas(recievers) and one transmitter .So far my code is like thi...

1 year ago | 0 answers | 0

Question

How to create input of linear equalization channel?

Hello , i want to create the input channel to linear equalizer . The project is asking to create random complex channel h ,4-QA...

1 year ago | 0 answers | 0

Question

What cut-off of an output actually means in zero-forcing equalization?

Hello , i have a project and i was asked to equalize a channel( with zero forcing which i did like this : i calculated the ze...

1 year ago | 0 answers | 0

Question

Why am i getting the : errir using inv ,Matrix must be square?

Hello , i have a created a toeplitz matrix H which is 12x8 .I want to run the command: y=inv(H) but the compiler says : Error ...

1 year ago | 1 answer | 0

Question

How can i create a convolution using toeplitz matrix?

Hello , i want to create a convolution between two signals but i need to make this happen using the teoplitz command that creat...

1 year ago | 1 answer | 0

Question

How can i create a sequence?

Hello, I have a sequence Xn: xn ∈ {(±1, ±i)} means xn is an element of the set [-1-i, -1+i, 1-i, 1+i] and i want to create thi...

1 year ago | 1 answer | 0

Question

How can i create a sequence?

Hello, i want to create a sequence {xn} , xn ∈ {(±1, ±j)} .I want to create this sequence for n=1 to N=100 .How can i create ...

1 year ago | 0 answers | 0

Question

How to create a complex normal i.i.d.?

Hello , i want to create a i.i.d CN(0,σ^2) I create the variable like that : x=sqrt(var/2)*(randn+1i*randn); Is this corre...

1 year ago | 1 answer | 0

Question

How can i find the experimental and theoritical BER ?

Hello , i am given r[k]=h[k]s[k]+awgn , k=1,...N(N=100) where s[k] is a 4-QAM modulation and h[k] is a flat fading channel . H...

1 year ago | 0 answers | 0

Question

How can i find the BER of 4-QAM ?

Hello , How can i find the BER of 4-QAM ? thank you.

1 year ago | 1 answer | 0

Question

how can i convert 1xn to mxn matrix ?

Hello i have a variable x[k] k=1,...100 that takes some random numbers as an input, so i have a 1x101 matrix. How can i creat...

1 year ago | 2 answers | 0

Question

How can i create MxN matrix?

Hello , i have a package r[k] that contains k=1,...N symbols(N=1000) .So , i have a matrix 1x1001. I want to make l=5000 packag...

1 year ago | 1 answer | 0

Question

why i get the undefined variable message?

I have this code for QAM: p=(sign(randn(N,1))+2)/2; for i=1:length(p/2)-1 if p(i)==0 && p(i+1)==0 s(i)=1+1i; ...

1 year ago | 1 answer | 0

Question

How to calculate qammod for discrete time using for-loop?

Hello,i want to use the function qammod to create a 4-QAM signal. I want to create 4-QAM for the signal y[k] ,k=1,...N (N=100) ...

1 year ago | 0 answers | 0