Reputation: 37
I have three 2D plot that depends on the same x-variable. picture and these 3 plots are for different resolutions. the 3rd dimension will be low medium and high.
I want them to plot as in the example. Can you help me, please?
Upvotes: 1
Views: 173
Reputation: 75
This is assuming your 3 vectors have the same dimensions:
Merge your 3 vectors in matrix data
as follows: data = [vector1; vector2; vector3];
Use the surf function to plot the resulting matrix: surf(data);
Upvotes: 1