Transformations by diagonal matrices in a normed space