If I have a function z=f(x,y) how do I plot lines of constant y in MATLAB?
Conversation
Replying to
Use plot3, define an xvec and yyec with linspace, iterate over length of yvec and plot3(xvec,yvec(k),zfunc(xvec,yvec(k))
keep hold on for the figure window
Show replies
There’s a contour function but that will auto plot constant z contours. You may be able to mess with it to do y slices
1

