5-7 ????

ϥ quiver OieXWVqϡ]Quiver Plots^ASOAΩܤ󥭭Vq ]Vector Fields^AҦpWqAάOytA|ҦpUG

Example 1: 05-Sϧ/quiver01.m[x, y, z] = peaks(20); [u, v] = gradient(z); contour(x, y, z, 10); hold on, quiver(x,y,u,v); hold off axis image

bWҤAgradient ͱצVqAcontour i浥u@ϡA quiver hNC@IצVqHpbܡC]Ѱ򥻷LniAצVqûPuAiѤWϦAoҡC^

Hint
צVq]NOu̳tUkv]Steepest Descent^Ҧ樫|ϤVC

Hint
bdɮפA̯SOdzƤF@Ӧ쪺ʮiܡAiHA@ұצVqûMuAпJugradientDescentDemovæbuϧΤWIƹAYi̳ܳtUk|COҦAиոլݡI

eXŶVqϡAi quiver3 OApUG

Example 2: 05-Sϧ/quiver301.m[x, y] = meshgrid(-2:0.2:2, -1:0.1:1); z = x.*exp(-x.^2-y.^2); [u, v, w] = surfnorm(x, y, z); quiver3(x, y, z, u, v, w); hold on, surf(x, y, z); hold off axis equal %colormap('default') % C^w]

䤤 surfnorm iͫ󦱭kVqC


MATLAB{]pGJg