MATLAB: N-dimensional plotting in Matlab

dimensplotting

So, I have n-dimensional vector x=(x1, x2, x3,…,xn) and a function of vector x: f(x) which is the result of mathematical operations on x1, x2, …, xn.
I want to plot (x, f(x) ). In my understanding, I will need to plot it in a (n+1) dimensional space (1 axis for each xi and an axis for f(x) ). Is that correct?
How can I do that in Matlab? I only see plot and plot3 in Matlab.
Thanks,

Best Answer

Hi, You can't. How would you visualize say a ten-dimensional space? Even for complex-valued functions where you have two dimensions for the input variable and two dimensions for the output variable, the solution is to plot two separate planes to show the mapping between the input and output.