# Linjun He

Last seen: 1년 초과 전 2018년부터 활동

Followers: 0   Following: 0

배지 보기

#### Feeds

보기 기준

답변 있음
turning legend off in xline function
You can simply use 'HandleVisibility' as follows: xline(-1,'--r','HandleVisibility','off'); For those line you want to show ...

4년 초과 전 | 7

질문

How do I design the structure and get the element according to its corresponding index?
I want to get the value of N and M after giving two index variable k and g, as shown in the figure. (k is a number and g is a...

5년 초과 전 | 답변 수: 1 | 0

### 1

답변

질문

How do I draw a specific type of 3d mesh for a implicit function?
Here is the implicit function:(x1, x2, x3 are all in range [0,1]) p = 1; f = @(x1,x2,x3) x1.^p + x2.^p + x3.^p - 1; I want t...

5년 초과 전 | 답변 수: 1 | 0

### 1

답변

답변 있음
How do I get the maximum numbers of every "increasing pattern" in each row in a matrix?
A2=[A,ones(size(A,1),1)]-[ones(size(A,1),1),A]<=0 B=A2(:,2:end).*A Here is what I get. B = 0 0 3 0 0 ...

5년 초과 전 | 0

질문

How do I get the maximum numbers of every "increasing pattern" in each row in a matrix?
Here is a matrix A consisting of "increasing patterns". A=[1,2,3,1,2,3,4,1,2,1,2,3,4,1,1;1,2,1,1,2,3,1,2,3,4,1,2,3,4,5] In ea...

5년 초과 전 | 답변 수: 2 | 0

### 2

답변

답변 있음
How do I convert a 2d matrix to a 3d matrix?
Similarly, I find this works: permute(reshape(C, 2, 3, 4), [1 3 2]) If you find answer from @Akira does not work in your cas...

5년 초과 전 | 0

질문

How do I convert a 2d matrix to a 3d matrix?
A(:,:,1) = ones(2,4); A(:,:,2) = 2*ones(2,4); A(:,:,3) = 3*ones(2,4); C = [ones(2,4);2*ones(2,4);3*ones(2,4)]; In this...

5년 초과 전 | 답변 수: 2 | 0

### 2

답변

질문

How do I keep consecutive number in a matrix?
For a matrix A, A = [1 1 0 0 1 1 0 0; 1 0 0 0 1 1 0 0; 0 1 0 0 1 1 0 0] I am trying to get B. How do I make it？ B ...

5년 초과 전 | 답변 수: 1 | 0

### 1

답변

질문

How to count the number of consecutive identical element of each row in a binary matrix?
Matrix A contains only binary numbers: A=[0,0,0,0,1,1,0,0;1,0,1,1,1,1,0,0;0,1,1,0,1,0,0,1] A = 0 0 0 0 1 1 0 0 1 0 1 1 1...

5년 초과 전 | 답변 수: 1 | 0

### 1

답변

질문

How do I use information in mat file?
Here's the information in each .mat file.(metric, PF, Population) What I want to do is to use information in .mat file as inp...

5년 초과 전 | 답변 수: 1 | 0

답변