Community Profile

photo

Hadi Ghahremannezhad


Last seen: 6 meses ago
10 total contributions since 2019

Hadi Ghahremannezhad's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


How to overlay a binary mask over an rgb image?
I am trying to overlay a binary mask over an RGB color image. I want to change the white area of the mask to a transparent red a...

7 meses ago | 1 answer | 0

1

answer

Question


How to perform a sparse eigendecomposition in order to compute only the eigenvectors of smallest eigenvalues?
I have a large n * n sparse matrix called L. k is a given value. I am supposed to do this: "perform a sparse eigendecomposition...

9 meses ago | 0 answers | 0

0

answers

Question


How to create a custom matrix?
I want to create a matrix that look like this: The first n rows are all 0. The second n rows are calculated separately by som...

9 meses ago | 1 answer | 0

1

answer

Question


How to enforce element-wise condition in matrix operations?
I am trying to use \ for Euler's backward method: where dt and lambda are constant numbers like: dt = 0.01 lambda = 0.5 an...

9 meses ago | 1 answer | 0

1

answer

Question


How to implement backward Euler's method?
I am trying to implement these formulas: Forward Euler's method: this is what I have tried: x_new = (speye(nv)+ dt * lambda...

9 meses ago | 1 answer | 0

1

answer

Question


How to calculate the volume of a 3D triangular mesh?
I have a pyramid with these vertices (each side is a triangle): [-4 0 5; 1 -5 5; 1 0 1; 1 5 5; 1 0 0] How can I calculate ...

9 meses ago | 1 answer | 0

1

answer

Question


Matrix division does not work because of matrix dimensions
I have two matrices: A: 5 by 5 B: 5 by 3 How can I claculate matrix division as B divided by A? I have used: B / A B \ ...

9 meses ago | 1 answer | 0

1

answer

Question


How to replace for loop with vectorization?
Is there any way I can replace this for loop with a vectorized approach? v = zeros(4, 3); ii = [1 ; 2 ; 3 ; 1 ; 3 ; 4]; res =...

10 meses ago | 2 answers | 0

2

answers

Question


How to perform norm on each row of a matrix?
I have a matrix and each row of the matrix is a vector. I want to perform norm function on each row of this matrix and save the ...

10 meses ago | 2 answers | 0

2

answers

Question


How to calculate determinant of matrices without loop?
I am new to Matlab and this might seem very easy. I have 2 matrices: a = [1 1 1; 2 2 2 ; 3 3 3 ; 4 4 4 ; 5 5 5]; ...

10 meses ago | 3 answers | 0

3

answers