How can I define a symbolic function over a specific region?
이전 댓글 표시
I need to define a two dimensional, let's say exponential, function over a certain ring, say from R=2 to R=3.
I tried to define assumptions on the variables X and Y such that 2<= X^2+Y^2 <= 3 , and then define the function
F=exp(-0.5*(X^2+Y^2));
when I ezplot, I find the function F defined over the whole domain not over the ring I defined. How can I insert such bounds for both 'the variables' and 'the function' ? In other words, How can I limit the output of the function to a certain slice of the domain?
Thanks,
Waleed
답변 (1개)
Wayne King
2013년 1월 15일
F=exp(-0.5*(X^2+Y^2));
ezsurf(F,[-2,2,-2,2])
In the above -2 <= X <= 2 and -2 <= Y <= 2
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!