You can edit the model here. Compile/simulate (under the "E" menu). Diagram, waveform, etc. update on successful compilation. (Check the build log.)
Can you update this code to perform a 3-D distance calculation?
dist = sqrt(x^2 + y^2 + z^2)
See what happens in the diagram if you move logic (and printing) to stage @15
.