I am trying to code SOM by myself. Visualising the weight matrix for 2-dimension input vectors is quite intuitive with ordinary plot function in MATLAB but it is hard to conceptualise how to do that for a higher dimensional input vectors. I learnt that could be possible using U-matrix. I have tried to look up solutions online but most materials I ran into are rarely helpful. Can someone please put me through how to go about it?