how to plot three dimensional vector in matlab
이전 댓글 표시
how to plot a gradient vector which is function of x, y, z, i.e. grad(f(x,y,z)). i need three dimensional plot of this function, where x,y,z are variables. still i unable to plot this function. my function is given by x-component=x.y y-component=x.^2+y.^2 z-component=(z.^2).x.^2+y for any value of x,y,z how this function will look in three dimensional line or surface plot.
답변 (1개)
Walter Roberson
2012년 1월 14일
1 개 추천
gradient plots have two values per location, one for the x gradient and one for the y gradient. How do you wish to display the two values simultaneously? For example, are you looking for something like quiver() ?
When you have a function of 3 variables, then you need at least 4 dimensions to represent the output. You can attempt to show the 4th dimension by using color, or by using transparency, or by using dot (sphere) size, or by doing an animation. None of those methods is really satisfying.
You can also use isosurface plots.
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!