photo

Daniel Neubauer


Last seen: 6 maanden ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 1
  • First Answer
  • Thankful Level 2

View badges

Feeds

View by

Answered
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)

ongeveer 2 jaar ago | 0

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

ongeveer 2 jaar ago | 1

| accepted

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

ongeveer 2 jaar ago | 2

Answered
Replace Row in a Matrix with an Vector
M=magic(5) r=[0 0 0 0 0] M_new=[M(1:end-1,:);r]

ongeveer 2 jaar ago | 0

Question


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

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 2 jaar ago | 1 answer | 0

1

answer