Question: Changing each individual matrix in a loop using if function

Hi, I am trying to the following. When my DizLambda value is 0, I would like it to show "a" and if it is not 0 but smaller than 1.5 to show "9", otherwiese, it it is not 0 and bigger than 1.5, to show its original value. How do I do that please in its own matrix position?

restart:
with(LinearAlgebra):
interface(rtablesize=infinity):
node:=9:
Lambda:=DiagonalMatrix([3,6,4,2,5,2,3,5,3,7,4,7,4,6,8,9,2,1]):
dizLambda:=Matrix(node*2):
for i from 1 to (node*2-1) do
for j from (i+1) to (node*2) do
dizLambda[i,j]:=(Lambda[i,i]-Lambda[j,j])/2;
Z:=if dizLambda(i,j)<1.5 then 1.5 .... end if #######this is where i do not know how to write
end do:
end do:

Please advice. Thanks.

Please Wait...