# Pedro Vicente

Active since 2018

Followers: 0   Following: 0

View badges

#### Feeds

View by

Question

How can i have a matrix A, that depends of the result of other matrix B, that when there's a x number in B, matrix A changes to 1
So, i have a matrix B(51,10,1000), that have somewhere negative numbers. And i want a matrix A(51,1000) that when running the...

meer dan 5 jaar ago | 1 answer | 0

### 1

answer

Question

How to sum n lines of a matrix to another matrix?
So basically, i have a matrix Apit with the index of (51*n,5,1000) and what i wanted is another matrix TotalApit, with the index...

meer dan 5 jaar ago | 2 answers | 0

### 2

answers

Question

How to change two variables at same time in a loop?
So i have something like: for k = 1:nexecucoes for i = 1:t*n for v = 1:n for j = 1:m ...

meer dan 5 jaar ago | 1 answer | 1

### 1

answer

Question

how to have a vector that counts how many repetitive numbers there is in another vector?
So i have a vector with 100 numbers. And those numbers only goes until 51. For example A = [ 50 49 32 21 50 38 41 2 46........

bijna 6 jaar ago | 3 answers | 0

### 3

answers

Question

Converting a 3D matrix into a 2D in the correct order.
Hi guys, so i have a index matrix of 1x8x50 (i know this is almost a vector). exemple: T(:,:,48) = 37.3795 32.7215 31...

bijna 6 jaar ago | 2 answers | 0

### 2

answers

Question

'Assignment has more non-singleton rhs dimensions than non-singleton subscripts'. Can you guys help me fixing this error?
I have a 3D matrix called a. Apit= 3x4x20. And i want a matrix U(20,1) that gives me the sum of each 20 matrix. And i was doing...

ongeveer 6 jaar ago | 1 answer | 0

answer