Help in graph plotting
์ด์ ๋๊ธ ํ์
Given a function ๐ง(๐ฅ,๐ฆ)=10sin ๐ก.where ๐ก=โ๐ฅ2+๐ฆ2.
Create a figure containing of twodifferent three-dimensional subplots (i.e. mesh and contour plots) of the function ๐ง(๐ฅ,๐ฆ)where both ๐ฅ and ๐ฆ are ranging from -10 to 10. For both subplots, label the axes and showthe color bar to identify the variation of z.
x=linspace(-10,10);
y=linspace(-10,10);
t=sqrt(x.^(2)+y.^(2));
Z = 10*sin(sqrt(x.^(2)+y.^(2)));
%graphing
figure(1)
mesh(Z);
xlabel('x')
ylabel('y')
zlabel('10 sin(t)')
figure(2)
contour3(Z);
xlabel('x')
ylabel('y')
zlabel('10 sin(t)')

What went wrong actually?
No graph were plotted when run
์ฑํ๋ ๋ต๋ณ
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์นดํ ๊ณ ๋ฆฌ
๋์๋ง ์ผํฐ ๋ฐ 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!

