How to plot a function of 3 variables and show a slice in the same plot?
Show older comments
Hi I have a function f dependent on 3 variables x,y,z. I want to plot f and also show a slice of f for a particular value of x,y,z in the same plot of f. For example let
x = -10:0.1:10;
y = -10:0.1:10;
z = -10:0.1:10;
f = x^2 + 3y^2 + exp(z);
How can i do this? Please help me out.
Answers (1)
José-Luis
on 15 Aug 2016
0 votes
1 Comment
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!