Community Profile

photo

Omar Ali Muhammed


Last seen: más de 1 año hace Con actividad desde 2021

Estadísticas

All
  • Explorer
  • Thankful Level 3
  • Solver
  • First Answer

Ver insignias

Content Feed

Ver por

Pregunta


Is it possible to generate specific random numbers?
The generation of unique random numbers is done simply through randperm. example function idx=RandNumberSequence(Key,N) % us...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Is it possible to vectorize this?
I want to find the most occurring element in the matrix in column wise excluding zeror elements. e.g if A = [1 2 0 3 4 6; 9 3 4...

casi 3 años hace | 3 respuestas | 1

3

respuestas

Pregunta


Is it possible to vectorize this ?
A matrix A(100x1000) a selective column defined in B(1x1000). The required processing is the mean of non zero elements of each c...

casi 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How to return multiple values by colfilt?
A matrix A 1000x1000, needd to be subdivided into patches of 5x5 (let us called B). then B is processed by subdividing it int...

casi 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Is it possible to find a seed to generate given set of integers?
Given certain ranfom integer numbers defined over [1 N]. Is it possible to find a SEED that is cappable of doing the inverse op...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can we plot pixel difference histogram accurately?
function PDH(img1,img2) diffImage2 = imfilter(img2, [1, -1]); diffImage1 = imfilter(img1, [1, -1]); minValue1 = min(diffImage...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Resuelto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

alrededor de 3 años hace

Resuelto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

alrededor de 3 años hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

alrededor de 3 años hace

Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

alrededor de 3 años hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

alrededor de 3 años hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

alrededor de 3 años hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

alrededor de 3 años hace

Resuelto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

alrededor de 3 años hace

Pregunta


How can we accurately estimate execution time?
Dear Matlab provides several functions choosing one depends mainly upon execution time. So how we can estimate processing time ...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
How to Vecrorizing conditional vactor mapping problem?
r=A.*3; r(r==0)=1; t1=repelem(B,r); t2=repelem(A,r); t3=t1.*t2; t3=dec2bin(t3)' c=regexprep(t3,'111','001'); c=c-'0'; c(...

alrededor de 3 años hace | 0

| aceptada

Pregunta


How to Vecrorizing conditional vactor mapping problem?
Dear, A is a binary vector its values correspond to the number of times to repeat the corresponding number drawn from the vect...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to Speedup conditional vector elements replacement?
Dear, a is a vector its values correspond to the number of times to repeat the corresponding number drawn from the vector b. f...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I speedup this for loop and ismember?
Due to the large size of the arrays, the following suffers from extremly slow execution. Is it possible to speedup this code. V...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
ismember function too slow
A=[1 2 3 4 5 6 7 8 9 10]; B=[3 4 9]; tt=ismember(B,A); if sum(tt)==3 Do Something; else Do Something; end

alrededor de 3 años hace | 0