Daniel Neubauer
Followers: 0 Following: 0
Feeds
已回答
Index an array using specific indices
x=[1 0 1 1 0 0 0 0 1 0]; s=[9 4 6]; snew=s(x(s)==1)
Index an array using specific indices
x=[1 0 1 1 0 0 0 0 1 0]; s=[9 4 6]; snew=s(x(s)==1)
2 years 前 | 0
已回答
Triangle Interpolation: Find Exact Value
your 2D-triangle with temperature can be treated as a 3d plane defined by the three points in [x y z] such as vertex=[x y t] t...
Triangle Interpolation: Find Exact Value
your 2D-triangle with temperature can be treated as a 3d plane defined by the three points in [x y z] such as vertex=[x y t] t...
2 years 前 | 1
| 已接受
已回答
summation of products of matrices
take a look at Z = pagemtimes(X,Y) is that what you need? p=3; m=4; i=5; E=ones(p,p,i); A=rand(p,m,i); Sum=sum(pagemtime...
summation of products of matrices
take a look at Z = pagemtimes(X,Y) is that what you need? p=3; m=4; i=5; E=ones(p,p,i); A=rand(p,m,i); Sum=sum(pagemtime...
2 years 前 | 2
已回答
Replace Row in a Matrix with an Vector
M=magic(5) r=[0 0 0 0 0] M_new=[M(1:end-1,:);r]
Replace Row in a Matrix with an Vector
M=magic(5) r=[0 0 0 0 0] M_new=[M(1:end-1,:);r]
2 years 前 | 0
提问
when doing A(B)=C, get average C values if index is used >1 times
say I have matrices A = [0 0 0] B=[1 1 2 3] C=[10 20 30 40] conventionally when doing A(B)=C I get A = [20 30 40] So by ...
2 years 前 | 1 个回答 | 0
1
个回答提问
get p*(q*m) matrix from m*n matrix and p*q indexing matrix
hey everyone, is there an elegant way to get the following: C=rand(8,n) %given index=[... 1 5 1 2 3 4 2 6 2 3 4 1 ...
2 years 前 | 1 个回答 | 0
1
个回答提问
get elements at x from array A without loop
so, i have an array A=(1,2,3,4,5,6,7,8,9) and another array containing indexes B=(1,1,3,6,7,5,4). How to get a third one based o...
2 years 前 | 1 个回答 | 0