Beruflich Dokumente
Kultur Dokumente
x = linspace(-10,10);
y = linspace(-10,10);
[x,y]=meshgrid(x,y);
quiver (x,y, y+sin (2*pi*x/10), x+sin (2*pi*y/10))
>> x = linspace(-5,5);
x = linspace(-10,10);
y = linspace(-10,10);
[x,y]=meshgrid(1:5:10);
quiver (x,y, y+sin (2*pi*x/10), x+sin (2*pi*y/10))
>> x = linspace(-5,5);
x = linspace(-10,10);
y = linspace(-10,10);
[x,y]=meshgrid(1:1:10);
quiver (x,y, y+sin (2*pi*x/10), x+sin (2*pi*y/10))
>> [x,y] = meshgrid(-2:.2:2,-1:.15:1);
z = x .* exp(-x.^2 - y.^2); [px,py] = gradient(z,.2,.15);
contour(x,y,z), hold on
quiver(x,y,px,py), hold off, axis image
>> x = linspace(-5,5);
x = linspace(-5,5);
y = linspace(-5,5);
[x,y]=meshgrid(x,y);
quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
?
Error: Unbalanced or unexpected parenthesis or bracket.
>> x = linspace(-5,5);
x = linspace(-5,5);
y = linspace(-5,5);
[x,y]=meshgrid(x,y);
quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
?
Error: Unbalanced or unexpected parenthesis or bracket.
>> x = linspace(-5,5);
>> y = linspace(-5,5);
>> [x,y]=meshgrid(x,y);
>> quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), (y+sin (2*pi*x/10))(1:2:end,
1:2:end), (x+sin (2*pi*y/10))(1:2:end, 1:2:end))
?
Error: Unbalanced or unexpected parenthesis or bracket.
>> quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), y+sin(2*pi*x/10)(1:2:end,
1:2:end), x+sin(2*pi*y/10)(1:2:end, 1:2:end))
Error: ()-indexing must appear last in an index expression.
?
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
>> u=y+sin(2*pi*x/10)
u =
Columns 1 through 14
Columns 15 through 28
Columns 29 through 42
Columns 43 through 56
Columns 57 through 70
Columns 71 through 84
-4.9366 -5.0000
-4.8356 -4.8990
-4.7346 -4.7980
-4.6335 -4.6970
-4.5325 -4.5960
-4.4315 -4.4949
-4.3305 -4.3939
-4.2295 -4.2929
-4.1285 -4.1919
-4.0275 -4.0909
-3.9265 -3.9899
-3.8255 -3.8889
-3.7245 -3.7879
-3.6234 -3.6869
-3.5224 -3.5859
-3.4214 -3.4848
-3.3204 -3.3838
-3.2194 -3.2828
-3.1184 -3.1818
-3.0174 -3.0808
-2.9164 -2.9798
-2.8154 -2.8788
-2.7144 -2.7778
-2.6133 -2.6768
-2.5123 -2.5758
-2.4113 -2.4747
-2.3103 -2.3737
-2.2093 -2.2727
-2.1083 -2.1717
-2.0073 -2.0707
-1.9063 -1.9697
-1.8053 -1.8687
-1.7043 -1.7677
-1.6032 -1.6667
-1.5022 -1.5657
-1.4012 -1.4646
-1.3002 -1.3636
-1.1992 -1.2626
-1.0982 -1.1616
-0.9972 -1.0606
-0.8962 -0.9596
-0.7952 -0.8586
-0.6942 -0.7576
-0.5931 -0.6566
-0.4921 -0.5556
-0.3911 -0.4545
-0.2901 -0.3535
-0.1891 -0.2525
-0.0881 -0.1515
0.0129 -0.0505
0.1139 0.0505
0.2149 0.1515
0.3159 0.2525
0.4170 0.3535
0.5180 0.4545
0.6190 0.5556
0.7200 0.6566
0.8210 0.7576
0.9220 0.8586
1.0230 0.9596
1.1240 1.0606
1.2250 1.1616
1.3261 1.2626
1.4271 1.3636
1.5281 1.4646
1.6291 1.5657
1.7301 1.6667
1.8311 1.7677
1.9321 1.8687
2.0331 1.9697
2.1341 2.0707
2.2351 2.1717
2.3362 2.2727
2.4372 2.3737
2.5382 2.4747
2.6392 2.5758
2.7402 2.6768
2.8412 2.7778
2.9422 2.8788
3.0432 2.9798
3.1442 3.0808
3.2452 3.1818
3.3463 3.2828
3.4473 3.3838
3.5483 3.4848
3.6493 3.5859
3.7503 3.6869
3.8513 3.7879
3.9523 3.8889
4.0533 3.9899
4.1543 4.0909
4.2553 4.1919
4.3564 4.2929
4.4574 4.3939
4.5584 4.4949
4.6594 4.5960
4.7604 4.6970
4.8614 4.7980
4.9624 4.8990
5.0634 5.0000
>> u=y+sin(2*pi*x/10);
>> v=x+sin(2*pi*y/10);
>> quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), u(1:2:end, 1:2:end),v(1:2:end,
1:2:end))
>> quiver (x(1:1:end, 1:1:end),y(1:1:end, 1:1:end), u(1:1:end, 1:1:end),v(1:1:end,
1:1:end))
>> quiver (x(1:4:end, 1:4:end),y(1:4:end, 1:4:end), u(1:4:end, 1:4:end),v(1:4:end,
1:4:end))
>> quiver (x(1:1:end, 1:1:end),y(1:1:end, 1:1:end), u(1:1:end, 1:1:end),v(1:1:end,
1:1:end))
>> x = linspace(-5,5);
>> y = linspace(-5,5);
>> [x,y]=meshgrid(x,y);
>> u=y+sin(2*pi*x/10);
>> v=x+sin(2*pi*y/10);
>> quiver (x(1:4:end, 1:4:end),y(1:4:end, 1:4:end), u(1:4:end, 1:4:end),v(1:4:end,
1:4:end))
>>
>> mesh(sqrt((abs(y+sin (2*pi*x/10))).^2+(abs(x+sin (2*pi*y/10))).^2))
>> mesh(sqrt(abs(u).^2+abs(v).^2))
>> mesh(sqrt(abs(u).^2+abs(v).^2))
>> ecountour(sqrt(abs(u).^2+abs(v).^2))
Undefined function or variable 'ecountour'.
>> econtour(sqrt(abs(u).^2+abs(v).^2))
Undefined function or variable 'econtour'.
>> ezcontour(sqrt(abs(u).^2+abs(v).^2))
Error using ezfcnchk (line 66)
FUN must be a function, a valid string expression, or an inline function object.
>> ezcontour('sqrt(abs(u).^2+abs(v).^2)')
>> ezcontour('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> mesh('sqrt((abs(y+sin (2*pi*x/10))).^2+(abs(x+sin (2*pi*y/10))).^2)')
Error using mesh (line 62)
Not enough input arguments.
v2 =
>> ezcontourf('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> hold on
>> quiver (x(1:4:end, 1:4:end),y(1:4:end, 1:4:end), u(1:4:end, 1:4:end),v(1:4:end,
1:4:end)); hold on;
ezcontourf('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> ezcontourf('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> hold on;
>> quiver (x(1:4:end, 1:4:end),y(1:4:end, 1:4:end), u(1:4:end, 1:4:end),v(1:4:end,
1:4:end))
>> quiver (x(1:3:end, 1:3:end),y(1:3:end, 1:3:end), u(1:3:end, 1:3:end),v(1:3:end,
1:3:end))
>> ezcontourf('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> hold on
>> quiver (x(1:3:end, 1:3:end),y(1:3:end, 1:3:end), u(1:3:end, 1:3:end),v(1:3:end,
1:3:end))
>> quiver (x(1:2:end, 1:2:end),y(1:2:end, 1:2:end), u(1:2:end, 1:2:end),v(1:2:end,
1:2:end))
>> ezcontourf('sqrt(abs(y+sin(2*pi*x/10)).^2+abs(x+sin(2*pi*y/10)).^2)')
>> hold on
>> quiver (x(1:4:end, 1:4:end),y(1:4:end, 1:4:end), u(1:4:end, 1:4:end),v(1:4:end,
1:4:end))
>> f=@(x,y) x.^2-y.^2
f =
@(x,y)x.^2-y.^2