create plot with slice
Show older comments

Hi, I am wondering if I have two values
x=[1,2,3,4,5,6,7]
y=[10,20,22,25,30,35,37]
I understand, it does NOT work like that, but could anyone help me to to do the same figure but with the data on the righthand side Y..
I need my plot to look like the same ??
2 Comments
Ali Tawfik
on 27 May 2020
Ameer Hamza
on 28 May 2020
You need at least 4 variables (3 independent and 1 dependent) to use slice(). V corresponds to the color of slices.
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!