29.11.2014 Views

Advanced Plotting and Model Building - FET

Advanced Plotting and Model Building - FET

Advanced Plotting and Model Building - FET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Surface Plots mesh:<br />

The following session shows how to generate the<br />

surface plot of the function<br />

z = xe -[(x-y2 ) 2 +y 2 ] , for −2 ≤ x ≤ 2 <strong>and</strong> −2 ≤ y ≤ 2,<br />

with a spacing of 0.1. This plot appears in Figure 5.8–<br />

2.<br />

>>[X,Y] = meshgrid(-2:0.1:2);<br />

>>Z = X.*exp(-((X-Y.^2).^2+Y.^2));<br />

>>mesh(X,Y,Z),xlabel(’x’), ...<br />

ylabel(’y’), zlabel(’z’)<br />

Z.R.K<br />

5-58 See the next slide.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!