photo

Harin Nelumdeniya


Actif depuis 2018

Followers: 0   Following: 0

Statistiques

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


Creating a matrix with for loop
I need to create a matrix that increases or decreases in size with the change in variable n. The matrix should be having only on...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Question


How can i change the 1st row 1st column and last row last column values in a tridiagonal matrix
n=5; A=zeros(n,n); for i=1:n if (i>1) A(i-1,i)=-100; end A(i,i)=300; if (i<n) A(i+1,...

plus de 6 ans il y a | 1 réponse | 0

1

réponse