Community Profile

photo

Amirhossein Moosavi


Last seen: 10일 전
17 2019 이후 총 참여 횟수

담당자

Amirhossein Moosavi's 배지

  • Thankful Level 2

세부 정보 보기...

참여 게시물
보기 기준

질문


Detect consecutive positive numbers in an array
Hello, Let us assum an Array A as follows: A = [4 9 6 0 0 3 4 0 3] I want to detect the location (begining and ending) of co...

25일 전 | 답변 수: 1 | 0

1

답변

질문


Creating a matrix using the colon function
Hi everyone, Let us assum that I have two arrays as follows: A = [1 2 3 4 5] B = [3 4 5 6 7] I want to use colon funcion to ...

3달 전 | 답변 수: 3 | 1

3

답변

질문


Allocation of values to a matrix under a specific condition
Hi everyone, Let us assum Matrix A as follows: A = [0 0 0 1 1 0 0 0 0 2 2 0 0 0 0 3 0 0 0 0 0 0 0 0] I have to ...

3달 전 | 답변 수: 0 | 0

0

답변

질문


Sort rows of a matrix based on a specific array
Hi everyone, Let us assum Matrix A and array B as follows: A = [1 0 1 2 0 0 4 0 0 3 1 1 6 0 0 5 ...

3달 전 | 답변 수: 2 | 0

2

답변

질문


The output of 'mle' function for 'gp' distribution
Hi everyone, When I use the 'mle' function for 'gp' ditribution (as follows), I obtain two outputs. phat = mle(Data, 'distribu...

3달 전 | 답변 수: 0 | 0

0

답변

질문


Shuffling numbers while keeping identical numbers next to each other
Hi everyone, Let us assume the following array: A = [1 1 2 3 3 4 6 6 6 6] I would like to shuffle this array while while keep...

3달 전 | 답변 수: 1 | 0

1

답변

답변 있음
Identify the minimum number of rows in a matrix meeting a condition
This is a code that addresses my question, but I am not sure whether it is the fastest way or not. EG = cell(1, 100); % A place...

3달 전 | 0

질문


Identify the minimum number of rows in a matrix meeting a condition
Hi everyone, Please assume that I have a matrix as follows: A = [0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 1...

3달 전 | 답변 수: 3 | 1

3

답변

질문


Convert a vector into a matrix (row wise)
Let us assume vector A as follows: A = [1 2 3 4; 5 6 7 8; 9 10 11 12]; I create two vectors (row wise) from this matrix as fol...

4달 전 | 답변 수: 1 | 0

1

답변

질문


non linear correlation for three vectors
I have a matrix that includes three columns of values. Thus, how can I measure the nonlinear correlation of these vectors?

4달 전 | 답변 수: 0 | 0

0

답변

답변 있음
Identify unique structures from a population - updated
Does anyone have answer to this question?

1년 이상 전 | 0

질문


Identify unique structures from a population - updated
Dear experts, I have a population of structures. Each of these structures has three similar sub-structures that store some cell...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


Which way of programming is more efficient and faster?
Dear friends, I would like to know whether there is a difference between following cases. Your responses are appreciated. Case...

1년 이상 전 | 답변 수: 2 | 0

2

답변

답변 있음
Randomly select an element from a vector satisfying a condition
I already have an answer to this question as follow (but I am seeking for faster solutions): Ind = find(X > 2); Ind = Ind(rands...

1년 이상 전 | 0

| 수락됨

질문


Randomly select an element from a vector satisfying a condition
Dear experts, I would like to randomly select an element from a vector satisfying a condition. In fact, I want to know what is ...

1년 이상 전 | 답변 수: 3 | 0

3

답변

질문


"Assignment between unlike types is not allowed" in STRUCTURES
Hello, Please suppose the following matrices and structure: X1 = zeros(1, 4); X2 = zeros(2, 4); X3 = zeros(3, 4); AA.SM =...

1년 이상 전 | 답변 수: 2 | 0

2

답변

질문


Copy the values of multiple fields in a structure to another structure at once
Hello, I want to copy the values of multiple fields in a structure to another structure at once (without loop). For example, su...

1년 이상 전 | 답변 수: 3 | 0

3

답변