You can use X, Y and Z axes to visualize data up to 3 dimensions. To visualize higher dimensions, you must incorporate something other than position into the visualization to convey that dimension's information.
See this answer for more details: https://www.mathworks.com/matlabcentral/answers/1960964-how-to-plot-5d-in-matlab#answer_1232454