zajecia3


x=-pi:0.1:100

x =

Columns 1 through 6

-3.1416 -3.0416 -2.9416 -2.8416 -2.7416 -2.6416

Columns 7 through 12

-2.5416 -2.4416 -2.3416 -2.2416 -2.1416 -2.0416

Columns 13 through 18

-1.9416 -1.8416 -1.7416 -1.6416 -1.5416 -1.4416

Columns 19 through 24

-1.3416 -1.2416 -1.1416 -1.0416 -0.94159 -0.84159

Columns 25 through 30

-0.74159 -0.64159 -0.54159 -0.44159 -0.34159 -0.24159

Columns 31 through 36

-0.14159 -0.041593 0.058407 0.15841 0.25841 0.35841

Columns 37 through 42

0.45841 0.55841 0.65841 0.75841 0.85841 0.95841

Columns 43 through 48

1.0584 1.1584 1.2584 1.3584 1.4584 1.5584

Columns 49 through 54

1.6584 1.7584 1.8584 1.9584 2.0584 2.1584

Columns 55 through 60

2.2584 2.3584 2.4584 2.5584 2.6584 2.7584

Columns 61 through 66

2.8584 2.9584 3.0584 3.1584 3.2584 3.3584

Columns 67 through 72

3.4584 3.5584 3.6584 3.7584 3.8584 3.9584

Columns 73 through 78

4.0584 4.1584 4.2584 4.3584 4.4584 4.5584

Columns 79 through 84

4.6584 4.7584 4.8584 4.9584 5.0584 5.1584

Columns 85 through 90

5.2584 5.3584 5.4584 5.5584 5.6584 5.7584

Columns 91 through 96

5.8584 5.9584 6.0584 6.1584 6.2584 6.3584

Columns 97 through 102

6.4584 6.5584 6.6584 6.7584 6.8584 6.9584

Columns 103 through 108

7.0584 7.1584 7.2584 7.3584 7.4584 7.5584

Columns 109 through 114

7.6584 7.7584 7.8584 7.9584 8.0584 8.1584

Columns 115 through 120

8.2584 8.3584 8.4584 8.5584 8.6584 8.7584

Columns 121 through 126

8.8584 8.9584 9.0584 9.1584 9.2584 9.3584

Columns 127 through 132

9.4584 9.5584 9.6584 9.7584 9.8584 9.9584

Columns 133 through 138

10.058 10.158 10.258 10.358 10.458 10.558

Columns 139 through 144

10.658 10.758 10.858 10.958 11.058 11.158

Columns 145 through 150

11.258 11.358 11.458 11.558 11.658 11.758

Columns 151 through 156

11.858 11.958 12.058 12.158 12.258 12.358

Columns 157 through 162

12.458 12.558 12.658 12.758 12.858 12.958

Columns 163 through 168

13.058 13.158 13.258 13.358 13.458 13.558

Columns 169 through 174

13.658 13.758 13.858 13.958 14.058 14.158

Columns 175 through 180

14.258 14.358 14.458 14.558 14.658 14.758

Columns 181 through 186

14.858 14.958 15.058 15.158 15.258 15.358

Columns 187 through 192

15.458 15.558 15.658 15.758 15.858 15.958

Columns 193 through 198

16.058 16.158 16.258 16.358 16.458 16.558

Columns 199 through 204

16.658 16.758 16.858 16.958 17.058 17.158

Columns 205 through 210

17.258 17.358 17.458 17.558 17.658 17.758

Columns 211 through 216

17.858 17.958 18.058 18.158 18.258 18.358

Columns 217 through 222

18.458 18.558 18.658 18.758 18.858 18.958

Columns 223 through 228

19.058 19.158 19.258 19.358 19.458 19.558

Columns 229 through 234

19.658 19.758 19.858 19.958 20.058 20.158

Columns 235 through 240

20.258 20.358 20.458 20.558 20.658 20.758

Columns 241 through 246

20.858 20.958 21.058 21.158 21.258 21.358

Columns 247 through 252

21.458 21.558 21.658 21.758 21.858 21.958

Columns 253 through 258

22.058 22.158 22.258 22.358 22.458 22.558

Columns 259 through 264

22.658 22.758 22.858 22.958 23.058 23.158

Columns 265 through 270

23.258 23.358 23.458 23.558 23.658 23.758

Columns 271 through 276

23.858 23.958 24.058 24.158 24.258 24.358

Columns 277 through 282

24.458 24.558 24.658 24.758 24.858 24.958

Columns 283 through 288

25.058 25.158 25.258 25.358 25.458 25.558

Columns 289 through 294

25.658 25.758 25.858 25.958 26.058 26.158

Columns 295 through 300

26.258 26.358 26.458 26.558 26.658 26.758

Columns 301 through 306

26.858 26.958 27.058 27.158 27.258 27.358

Columns 307 through 312

27.458 27.558 27.658 27.758 27.858 27.958

Columns 313 through 318

28.058 28.158 28.258 28.358 28.458 28.558

Columns 319 through 324

28.658 28.758 28.858 28.958 29.058 29.158

Columns 325 through 330

29.258 29.358 29.458 29.558 29.658 29.758

Columns 331 through 336

29.858 29.958 30.058 30.158 30.258 30.358

Columns 337 through 342

30.458 30.558 30.658 30.758 30.858 30.958

Columns 343 through 348

31.058 31.158 31.258 31.358 31.458 31.558

Columns 349 through 354

31.658 31.758 31.858 31.958 32.058 32.158

Columns 355 through 360

32.258 32.358 32.458 32.558 32.658 32.758

Columns 361 through 366

32.858 32.958 33.058 33.158 33.258 33.358

Columns 367 through 372

33.458 33.558 33.658 33.758 33.858 33.958

Columns 373 through 378

34.058 34.158 34.258 34.358 34.458 34.558

Columns 379 through 384

34.658 34.758 34.858 34.958 35.058 35.158

Columns 385 through 390

35.258 35.358 35.458 35.558 35.658 35.758

Columns 391 through 396

35.858 35.958 36.058 36.158 36.258 36.358

Columns 397 through 402

36.458 36.558 36.658 36.758 36.858 36.958

Columns 403 through 408

37.058 37.158 37.258 37.358 37.458 37.558

Columns 409 through 414

37.658 37.758 37.858 37.958 38.058 38.158

Columns 415 through 420

38.258 38.358 38.458 38.558 38.658 38.758

Columns 421 through 426

38.858 38.958 39.058 39.158 39.258 39.358

Columns 427 through 432

39.458 39.558 39.658 39.758 39.858 39.958

Columns 433 through 438

40.058 40.158 40.258 40.358 40.458 40.558

Columns 439 through 444

40.658 40.758 40.858 40.958 41.058 41.158

Columns 445 through 450

41.258 41.358 41.458 41.558 41.658 41.758

Columns 451 through 456

41.858 41.958 42.058 42.158 42.258 42.358

Columns 457 through 462

42.458 42.558 42.658 42.758 42.858 42.958

Columns 463 through 468

43.058 43.158 43.258 43.358 43.458 43.558

Columns 469 through 474

43.658 43.758 43.858 43.958 44.058 44.158

Columns 475 through 480

44.258 44.358 44.458 44.558 44.658 44.758

Columns 481 through 486

44.858 44.958 45.058 45.158 45.258 45.358

Columns 487 through 492

45.458 45.558 45.658 45.758 45.858 45.958

Columns 493 through 498

46.058 46.158 46.258 46.358 46.458 46.558

Columns 499 through 504

46.658 46.758 46.858 46.958 47.058 47.158

Columns 505 through 510

47.258 47.358 47.458 47.558 47.658 47.758

Columns 511 through 516

47.858 47.958 48.058 48.158 48.258 48.358

Columns 517 through 522

48.458 48.558 48.658 48.758 48.858 48.958

Columns 523 through 528

49.058 49.158 49.258 49.358 49.458 49.558

Columns 529 through 534

49.658 49.758 49.858 49.958 50.058 50.158

Columns 535 through 540

50.258 50.358 50.458 50.558 50.658 50.758

Columns 541 through 546

50.858 50.958 51.058 51.158 51.258 51.358

Columns 547 through 552

51.458 51.558 51.658 51.758 51.858 51.958

Columns 553 through 558

52.058 52.158 52.258 52.358 52.458 52.558

Columns 559 through 564

52.658 52.758 52.858 52.958 53.058 53.158

Columns 565 through 570

53.258 53.358 53.458 53.558 53.658 53.758

Columns 571 through 576

53.858 53.958 54.058 54.158 54.258 54.358

Columns 577 through 582

54.458 54.558 54.658 54.758 54.858 54.958

Columns 583 through 588

55.058 55.158 55.258 55.358 55.458 55.558

Columns 589 through 594

55.658 55.758 55.858 55.958 56.058 56.158

Columns 595 through 600

56.258 56.358 56.458 56.558 56.658 56.758

Columns 601 through 606

56.858 56.958 57.058 57.158 57.258 57.358

Columns 607 through 612

57.458 57.558 57.658 57.758 57.858 57.958

Columns 613 through 618

58.058 58.158 58.258 58.358 58.458 58.558

Columns 619 through 624

58.658 58.758 58.858 58.958 59.058 59.158

Columns 625 through 630

59.258 59.358 59.458 59.558 59.658 59.758

Columns 631 through 636

59.858 59.958 60.058 60.158 60.258 60.358

Columns 637 through 642

60.458 60.558 60.658 60.758 60.858 60.958

Columns 643 through 648

61.058 61.158 61.258 61.358 61.458 61.558

Columns 649 through 654

61.658 61.758 61.858 61.958 62.058 62.158

Columns 655 through 660

62.258 62.358 62.458 62.558 62.658 62.758

Columns 661 through 666

62.858 62.958 63.058 63.158 63.258 63.358

Columns 667 through 672

63.458 63.558 63.658 63.758 63.858 63.958

Columns 673 through 678

64.058 64.158 64.258 64.358 64.458 64.558

Columns 679 through 684

64.658 64.758 64.858 64.958 65.058 65.158

Columns 685 through 690

65.258 65.358 65.458 65.558 65.658 65.758

Columns 691 through 696

65.858 65.958 66.058 66.158 66.258 66.358

Columns 697 through 702

66.458 66.558 66.658 66.758 66.858 66.958

Columns 703 through 708

67.058 67.158 67.258 67.358 67.458 67.558

Columns 709 through 714

67.658 67.758 67.858 67.958 68.058 68.158

Columns 715 through 720

68.258 68.358 68.458 68.558 68.658 68.758

Columns 721 through 726

68.858 68.958 69.058 69.158 69.258 69.358

Columns 727 through 732

69.458 69.558 69.658 69.758 69.858 69.958

Columns 733 through 738

70.058 70.158 70.258 70.358 70.458 70.558

Columns 739 through 744

70.658 70.758 70.858 70.958 71.058 71.158

Columns 745 through 750

71.258 71.358 71.458 71.558 71.658 71.758

Columns 751 through 756

71.858 71.958 72.058 72.158 72.258 72.358

Columns 757 through 762

72.458 72.558 72.658 72.758 72.858 72.958

Columns 763 through 768

73.058 73.158 73.258 73.358 73.458 73.558

Columns 769 through 774

73.658 73.758 73.858 73.958 74.058 74.158

Columns 775 through 780

74.258 74.358 74.458 74.558 74.658 74.758

Columns 781 through 786

74.858 74.958 75.058 75.158 75.258 75.358

Columns 787 through 792

75.458 75.558 75.658 75.758 75.858 75.958

Columns 793 through 798

76.058 76.158 76.258 76.358 76.458 76.558

Columns 799 through 804

76.658 76.758 76.858 76.958 77.058 77.158

Columns 805 through 810

77.258 77.358 77.458 77.558 77.658 77.758

Columns 811 through 816

77.858 77.958 78.058 78.158 78.258 78.358

Columns 817 through 822

78.458 78.558 78.658 78.758 78.858 78.958

Columns 823 through 828

79.058 79.158 79.258 79.358 79.458 79.558

Columns 829 through 834

79.658 79.758 79.858 79.958 80.058 80.158

Columns 835 through 840

80.258 80.358 80.458 80.558 80.658 80.758

Columns 841 through 846

80.858 80.958 81.058 81.158 81.258 81.358

Columns 847 through 852

81.458 81.558 81.658 81.758 81.858 81.958

Columns 853 through 858

82.058 82.158 82.258 82.358 82.458 82.558

Columns 859 through 864

82.658 82.758 82.858 82.958 83.058 83.158

Columns 865 through 870

83.258 83.358 83.458 83.558 83.658 83.758

Columns 871 through 876

83.858 83.958 84.058 84.158 84.258 84.358

Columns 877 through 882

84.458 84.558 84.658 84.758 84.858 84.958

Columns 883 through 888

85.058 85.158 85.258 85.358 85.458 85.558

Columns 889 through 894

85.658 85.758 85.858 85.958 86.058 86.158

Columns 895 through 900

86.258 86.358 86.458 86.558 86.658 86.758

Columns 901 through 906

86.858 86.958 87.058 87.158 87.258 87.358

Columns 907 through 912

87.458 87.558 87.658 87.758 87.858 87.958

Columns 913 through 918

88.058 88.158 88.258 88.358 88.458 88.558

Columns 919 through 924

88.658 88.758 88.858 88.958 89.058 89.158

Columns 925 through 930

89.258 89.358 89.458 89.558 89.658 89.758

Columns 931 through 936

89.858 89.958 90.058 90.158 90.258 90.358

Columns 937 through 942

90.458 90.558 90.658 90.758 90.858 90.958

Columns 943 through 948

91.058 91.158 91.258 91.358 91.458 91.558

Columns 949 through 954

91.658 91.758 91.858 91.958 92.058 92.158

Columns 955 through 960

92.258 92.358 92.458 92.558 92.658 92.758

Columns 961 through 966

92.858 92.958 93.058 93.158 93.258 93.358

Columns 967 through 972

93.458 93.558 93.658 93.758 93.858 93.958

Columns 973 through 978

94.058 94.158 94.258 94.358 94.458 94.558

Columns 979 through 984

94.658 94.758 94.858 94.958 95.058 95.158

Columns 985 through 990

95.258 95.358 95.458 95.558 95.658 95.758

Columns 991 through 996

95.858 95.958 96.058 96.158 96.258 96.358

Columns 997 through 1002

96.458 96.558 96.658 96.758 96.858 96.958

Columns 1003 through 1008

97.058 97.158 97.258 97.358 97.458 97.558

Columns 1009 through 1014

97.658 97.758 97.858 97.958 98.058 98.158

Columns 1015 through 1020

98.258 98.358 98.458 98.558 98.658 98.758

Columns 1021 through 1026

98.858 98.958 99.058 99.158 99.258 99.358

Columns 1027 through 1032

99.458 99.558 99.658 99.758 99.858 99.958

y=x*exp(-sin(x)^2-(pi/4))
??? Error using ==> ^
Matrix must be square.

y=x*exp(-(sin(x)^2)-(pi/4))
??? Error using ==> ^
Matrix must be square.

y=x*exp(-sin(x)^2-(pi/4))
??? Error using ==> ^
Matrix must be square.

clear
clc
x=linspace(-pi,pi)

x =

Columns 1 through 6

-3.1416 -3.0781 -3.0147 -2.9512 -2.8877 -2.8243

Columns 7 through 12

-2.7608 -2.6973 -2.6339 -2.5704 -2.5069 -2.4435

Columns 13 through 18

-2.38 -2.3165 -2.2531 -2.1896 -2.1261 -2.0627

Columns 19 through 24

-1.9992 -1.9357 -1.8723 -1.8088 -1.7453 -1.6819

Columns 25 through 30

-1.6184 -1.5549 -1.4915 -1.428 -1.3645 -1.3011

Columns 31 through 36

-1.2376 -1.1741 -1.1107 -1.0472 -0.98373 -0.92026

Columns 37 through 42

-0.8568 -0.79333 -0.72986 -0.6664 -0.60293 -0.53947

Columns 43 through 48

-0.476 -0.41253 -0.34907 -0.2856 -0.22213 -0.15867

Columns 49 through 54

-0.0952 -0.031733 0.031733 0.0952 0.15867 0.22213

Columns 55 through 60

0.2856 0.34907 0.41253 0.476 0.53947 0.60293

Columns 61 through 66

0.6664 0.72986 0.79333 0.8568 0.92026 0.98373

Columns 67 through 72

1.0472 1.1107 1.1741 1.2376 1.3011 1.3645

Columns 73 through 78

1.428 1.4915 1.5549 1.6184 1.6819 1.7453

Columns 79 through 84

1.8088 1.8723 1.9357 1.9992 2.0627 2.1261

Columns 85 through 90

2.1896 2.2531 2.3165 2.38 2.4435 2.5069

Columns 91 through 96

2.5704 2.6339 2.6973 2.7608 2.8243 2.8877

Columns 97 through 100

2.9512 3.0147 3.0781 3.1416

y=x.*exc(-(sin(x).^2)-pi/4)
??? Undefined function or variable 'exc'.

y=x.*exp(-(sin(x).^2)-pi/4)

y =

Columns 1 through 6

-1.4324 -1.3978 -1.3526 -1.2982 -1.2361 -1.1682

Columns 7 through 12

-1.0964 -1.0224 -0.94806 -0.87491 -0.80422 -0.73701

Columns 13 through 18

-0.67401 -0.61573 -0.56242 -0.51416 -0.47089 -0.43242

Columns 19 through 24

-0.39849 -0.36878 -0.34298 -0.32073 -0.30171 -0.28559

Columns 25 through 30

-0.27207 -0.26087 -0.25174 -0.24442 -0.23868 -0.23429

Columns 31 through 36

-0.23102 -0.22864 -0.2269 -0.22553 -0.22425 -0.22274

Columns 37 through 42

-0.22067 -0.21765 -0.21334 -0.20734 -0.19931 -0.18892

Columns 43 through 48

-0.17592 -0.16016 -0.14158 -0.12028 -0.09648 -0.070558

Columns 49 through 54

-0.043015 -0.014454 0.014454 0.043015 0.070558 0.09648

Columns 55 through 60

0.12028 0.14158 0.16016 0.17592 0.18892 0.19931

Columns 61 through 66

0.20734 0.21334 0.21765 0.22067 0.22274 0.22425

Columns 67 through 72

0.22553 0.2269 0.22864 0.23102 0.23429 0.23868

Columns 73 through 78

0.24442 0.25174 0.26087 0.27207 0.28559 0.30171

Columns 79 through 84

0.32073 0.34298 0.36878 0.39849 0.43242 0.47089

Columns 85 through 90

0.51416 0.56242 0.61573 0.67401 0.73701 0.80422

Columns 91 through 96

0.87491 0.94806 1.0224 1.0964 1.1682 1.2361

Columns 97 through 100

1.2982 1.3526 1.3978 1.4324

plot(x,y)
clear
clc
x=linspace(-2*pi,2*pi)

x =

Columns 1 through 6

-6.2832 -6.1563 -6.0293 -5.9024 -5.7755 -5.6485

Columns 7 through 12

-5.5216 -5.3947 -5.2677 -5.1408 -5.0139 -4.8869

Columns 13 through 18

-4.76 -4.6331 -4.5061 -4.3792 -4.2523 -4.1253

Columns 19 through 24

-3.9984 -3.8715 -3.7445 -3.6176 -3.4907 -3.3637

Columns 25 through 30

-3.2368 -3.1099 -2.9829 -2.856 -2.7291 -2.6021

Columns 31 through 36

-2.4752 -2.3483 -2.2213 -2.0944 -1.9675 -1.8405

Columns 37 through 42

-1.7136 -1.5867 -1.4597 -1.3328 -1.2059 -1.0789

Columns 43 through 48

-0.952 -0.82506 -0.69813 -0.5712 -0.44427 -0.31733

Columns 49 through 54

-0.1904 -0.063467 0.063467 0.1904 0.31733 0.44427

Columns 55 through 60

0.5712 0.69813 0.82506 0.952 1.0789 1.2059

Columns 61 through 66

1.3328 1.4597 1.5867 1.7136 1.8405 1.9675

Columns 67 through 72

2.0944 2.2213 2.3483 2.4752 2.6021 2.7291

Columns 73 through 78

2.856 2.9829 3.1099 3.2368 3.3637 3.4907

Columns 79 through 84

3.6176 3.7445 3.8715 3.9984 4.1253 4.2523

Columns 85 through 90

4.3792 4.5061 4.6331 4.76 4.8869 5.0139

Columns 91 through 96

5.1408 5.2677 5.3947 5.5216 5.6485 5.7755

Columns 97 through 100

5.9024 6.0293 6.1563 6.2832

f=sin(x)

f =

Columns 1 through 6

2.4493e-016 0.12659 0.25115 0.37166 0.4862 0.59291

Columns 7 through 12

0.69008 0.77615 0.84973 0.90963 0.9549 0.98481

Columns 13 through 18

0.99887 0.99685 0.9788 0.945 0.89599 0.83257

Columns 19 through 24

0.75575 0.66677 0.56706 0.45823 0.34202 0.22031

Columns 25 through 30

0.095056 -0.031728 -0.158 -0.28173 -0.40093 -0.51368

Columns 31 through 36

-0.61816 -0.71269 -0.79576 -0.86603 -0.92235 -0.96384

Columns 37 through 42

-0.98982 -0.99987 -0.99384 -0.97181 -0.93415 -0.88145

Columns 43 through 48

-0.81458 -0.73459 -0.64279 -0.54064 -0.42979 -0.31203

Columns 49 through 54

-0.18925 -0.063424 0.063424 0.18925 0.31203 0.42979

Columns 55 through 60

0.54064 0.64279 0.73459 0.81458 0.88145 0.93415

Columns 61 through 66

0.97181 0.99384 0.99987 0.98982 0.96384 0.92235

Columns 67 through 72

0.86603 0.79576 0.71269 0.61816 0.51368 0.40093

Columns 73 through 78

0.28173 0.158 0.031728 -0.095056 -0.22031 -0.34202

Columns 79 through 84

-0.45823 -0.56706 -0.66677 -0.75575 -0.83257 -0.89599

Columns 85 through 90

-0.945 -0.9788 -0.99685 -0.99887 -0.98481 -0.9549

Columns 91 through 96

-0.90963 -0.84973 -0.77615 -0.69008 -0.59291 -0.4862

Columns 97 through 100

-0.37166 -0.25115 -0.12659 -2.4493e-016

g=sin(x)^2
??? Error using ==> ^
Matrix must be square.

g=sin(x).^2

g =

Columns 1 through 6

5.999e-032 0.016026 0.063075 0.13813 0.23639 0.35154

Columns 7 through 12

0.47621 0.6024 0.72203 0.82743 0.91184 0.96985

Columns 13 through 18

0.99774 0.99372 0.95805 0.89303 0.8028 0.69317

Columns 19 through 24

0.57116 0.44458 0.32156 0.20997 0.11698 0.048537

Columns 25 through 30

0.0090357 0.0010067 0.024964 0.079373 0.16075 0.26386

Columns 31 through 36

0.38212 0.50793 0.63324 0.75 0.85074 0.92899

Columns 37 through 42

0.97975 0.99975 0.98771 0.94442 0.87263 0.77696

Columns 43 through 48

0.66353 0.53962 0.41318 0.29229 0.18472 0.097365

Columns 49 through 54

0.035816 0.0040226 0.0040226 0.035816 0.097365 0.18472

Columns 55 through 60

0.29229 0.41318 0.53962 0.66353 0.77696 0.87263

Columns 61 through 66

0.94442 0.98771 0.99975 0.97975 0.92899 0.85074

Columns 67 through 72

0.75 0.63324 0.50793 0.38212 0.26386 0.16075

Columns 73 through 78

0.079373 0.024964 0.0010067 0.0090357 0.048537 0.11698

Columns 79 through 84

0.20997 0.32156 0.44458 0.57116 0.69317 0.8028

Columns 85 through 90

0.89303 0.95805 0.99372 0.99774 0.96985 0.91184

Columns 91 through 96

0.82743 0.72203 0.6024 0.47621 0.35154 0.23639

Columns 97 through 100

0.13813 0.063075 0.016026 5.999e-032

h=sin(x).^3

h =

Columns 1 through 6

1.4693e-047 0.0020287 0.015841 0.051339 0.11493 0.20843

Columns 7 through 12

0.32862 0.46755 0.61353 0.75266 0.87072 0.95511

Columns 13 through 18

0.99661 0.99059 0.93775 0.84391 0.71931 0.57711

Columns 19 through 24

0.43165 0.29643 0.18234 0.096215 0.040009 0.010693

Columns 25 through 30

0.00085889 -3.1939e-005 -0.0039444 -0.022362 -0.064448 -0.13554

Columns 31 through 36

-0.23621 -0.362 -0.50391 -0.64952 -0.78468 -0.8954

Columns 37 through 42

-0.96977 -0.99962 -0.98163 -0.9178 -0.81517 -0.68485

Columns 43 through 48

-0.5405 -0.3964 -0.26558 -0.15803 -0.079393 -0.030381

Columns 49 through 54

-0.0067782 -0.00025513 0.00025513 0.0067782 0.030381 0.079393

Columns 55 through 60

0.15803 0.26558 0.3964 0.5405 0.68485 0.81517

Columns 61 through 66

0.9178 0.98163 0.99962 0.96977 0.8954 0.78468

Columns 67 through 72

0.64952 0.50391 0.362 0.23621 0.13554 0.064448

Columns 73 through 78

0.022362 0.0039444 3.1939e-005 -0.00085889 -0.010693 -0.040009

Columns 79 through 84

-0.096215 -0.18234 -0.29643 -0.43165 -0.57711 -0.71931

Columns 85 through 90

-0.84391 -0.93775 -0.99059 -0.99661 -0.95511 -0.87072

Columns 91 through 96

-0.75266 -0.61353 -0.46755 -0.32862 -0.20843 -0.11493

Columns 97 through 100

-0.051339 -0.015841 -0.0020287 -1.4693e-047

plot(x,f,x,g,x,h)
plot(x,f,x,g,x,h)
plot(x,f,'r')
plot(x,f,'r:')
plot(x,g,'g:')
plot(x,g,'g--')
plot(x,f,'r-',x,g,'r:',x,h,'b--')
plot(x,f,'b-*'
??? plot(x,f,'b-*'
|
Error: ")" expected, "end of line" found.

plot(x,f,'b-*')
plot(x,f,'v-*')
??? Error in color/linetype argument

plot(x,f,'V-*')
??? Error in color/linetype argument

plot(x,f,'h-*')
??? Error in color/linetype argument

plot(x,f,'H-*')
??? Error in color/linetype argument

plot(x,f,'d-*')
??? Error in color/linetype argument

j=sin(2*x)

j =

Columns 1 through 6

4.8986e-016 0.25115 0.4862 0.69008 0.84973 0.9549

Columns 7 through 12

0.99887 0.9788 0.89599 0.75575 0.56706 0.34202

Columns 13 through 18

0.095056 -0.158 -0.40093 -0.61816 -0.79576 -0.92235

Columns 19 through 24

-0.98982 -0.99384 -0.93415 -0.81458 -0.64279 -0.42979

Columns 25 through 30

-0.18925 0.063424 0.31203 0.54064 0.73459 0.88145

Columns 31 through 36

0.97181 0.99987 0.96384 0.86603 0.71269 0.51368

Columns 37 through 42

0.28173 0.031728 -0.22031 -0.45823 -0.66677 -0.83257

Columns 43 through 48

-0.945 -0.99685 -0.98481 -0.90963 -0.77615 -0.59291

Columns 49 through 54

-0.37166 -0.12659 0.12659 0.37166 0.59291 0.77615

Columns 55 through 60

0.90963 0.98481 0.99685 0.945 0.83257 0.66677

Columns 61 through 66

0.45823 0.22031 -0.031728 -0.28173 -0.51368 -0.71269

Columns 67 through 72

-0.86603 -0.96384 -0.99987 -0.97181 -0.88145 -0.73459

Columns 73 through 78

-0.54064 -0.31203 -0.063424 0.18925 0.42979 0.64279

Columns 79 through 84

0.81458 0.93415 0.99384 0.98982 0.92235 0.79576

Columns 85 through 90

0.61816 0.40093 0.158 -0.095056 -0.34202 -0.56706

Columns 91 through 96

-0.75575 -0.89599 -0.9788 -0.99887 -0.9549 -0.84973

Columns 97 through 100

-0.69008 -0.4862 -0.25115 -4.8986e-016

subplot(2,2,1)
plot(x,j)
subplot(2,2,2)
plot(x,f)
subplot(2,2,3)
plot(x,g)
subplot(2,2,4)
plot(x,h)
clear
clc
x=(1:2:60)

x =

Columns 1 through 13

1 3 5 7 9 11 13 15 17 19 21 23 25

Columns 14 through 26

27 29 31 33 35 37 39 41 43 45 47 49 51

Columns 27 through 30

53 55 57 59

x=(1:2,60)
??? x=(1:2,60)
|
Error: ")" expected, "," found.

x=(1:2),60

x =

1 2


ans =

60

clc
clear
x=(1:2,60)
??? x=(1:2,60)
|
Error: ")" expected, "," found.

x=linspace(1,2,60);
f=exp(sin(x).^2);
g=sin(x.^2)*cos(x);
??? Error using ==> *
Inner matrix dimensions must agree.

g=(sin(x.^2)*cos(x));
??? Error using ==> *
Inner matrix dimensions must agree.

g=(sin(x.^2).*cos(x));
h=(x^(1/3))/log(x+1);
??? Error using ==> ^
Matrix must be square.

h=(x.^(1/3).)/log(x+1);
??? h=(x.^(1/3).)/log(x+1);
|
Error: ")" expected, "." found.

h=(x.^(1/3).)/log(x.+1).;
??? h=(x.^(1/3).)/log(x.+1).;
|
Error: ")" expected, "." found.

h=(x.^(1/3))./log(x+1)

h =

Columns 1 through 6

1.4427 1.4333 1.4243 1.4155 1.4069 1.3986

Columns 7 through 12

1.3905 1.3827 1.375 1.3676 1.3603 1.3533

Columns 13 through 18

1.3464 1.3397 1.3332 1.3268 1.3206 1.3145

Columns 19 through 24

1.3086 1.3028 1.2971 1.2916 1.2862 1.2809

Columns 25 through 30

1.2758 1.2707 1.2658 1.2609 1.2562 1.2516

Columns 31 through 36

1.247 1.2426 1.2382 1.234 1.2298 1.2257

Columns 37 through 42

1.2217 1.2177 1.2138 1.2101 1.2063 1.2027

Columns 43 through 48

1.1991 1.1956 1.1921 1.1887 1.1854 1.1821

Columns 49 through 54

1.1789 1.1757 1.1726 1.1695 1.1665 1.1636

Columns 55 through 60

1.1607 1.1578 1.155 1.1522 1.1495 1.1468

subplot(2,2,1)
plot(x,f,'b')
clear
x=linspace(-2,2,10);
y=cos(10*exp(x))

y =

Columns 1 through 6

0.21573 -0.51407 -0.98872 0.40939 -0.15279 0.99697

Columns 7 through 10

0.80933 0.50742 -0.96809 0.063092

plot(x,y)
plot(x,y,'-*')
x=linspace(-2,2,50);
y=cos(50*exp(x))

y =

Columns 1 through 6

0.88534 0.48962 -0.11262 -0.7107 -0.99899 -0.72978

Columns 7 through 12

0.047653 0.83436 0.90671 0.029517 -0.92092 -0.62031

Columns 13 through 18

0.67696 0.76111 -0.71616 -0.51285 0.98862 -0.39226

Columns 19 through 24

-0.4195 0.87853 -0.99748 0.99217 -0.99749 0.9676

Columns 25 through 30

-0.63994 -0.24426 0.99937 0.058822 -0.8461 -0.9981

Columns 31 through 36

-0.97923 -0.98462 -0.43371 0.89698 -0.19871 0.011197

Columns 37 through 42

-0.57117 0.88408 0.9607 0.99898 0.28701 -0.79934

Columns 43 through 48

0.2756 0.98237 0.82872 -0.87571 0.98466 0.93636

Columns 49 through 50

0.36277 0.31045


plot(x,y,'-*')
fplot('cos(10*exp(x))'[-2 2])
??? fplot('cos(10*exp(x))'[-2 2])
|
Error: ")" expected, "[" found.

fplot('cos(10*exp(x))',[-2 2])
clear
clc
x=fzero('cos(2*x-pi)',3)

x =

2.3562

x=fzero('abs(x)+1',1)
Exiting fzero: aborting search for an interval containing a sign change
because NaN or Inf function value encountered during search
(Function value at -Inf is Inf)
Check function or try again with a different starting value.

x =

NaN

celar
??? Undefined function or variable 'celar'.

clear
clc
fplot('sin(x)+x/10',[-3 3])
x=fzero('sin(x)+x/10',0)

x =

0

clear
fplot('(x+1)log10(x)-1.4',[0.1 4]
??? fplot('(x+1)log10(x)-1.4',[0.1 4]
|
Error: ")" expected, "end of line" found.

fplot('(x+1)*log10(x)-1.4',[0.1 4]
??? fplot('(x+1)*log10(x)-1.4',[0.1 4]
|
Error: ")" expected, "end of line" found.

fplot('((x+1)*log10(x))-1.4',[0.1 4]
??? fplot('((x+1)*log10(x))-1.4',[0.1 4]
|
Error: ")" expected, "end of line" found.

fplot('(x+1)*log10(x)-1.4',[0.1 4]
??? fplot('(x+1)*log10(x)-1.4',[0.1 4]
|
Error: ")" expected, "end of line" found.

fplot('(x+1)*log10(x)-1.4',[0.1 4])
fzero('(x+1)*log10(x)-1.4',0)
Warning: Log of zero.
> In C:\matlabR12\toolbox\matlab\elfun\log10.m at line 13
In C:\matlabR12\toolbox\matlab\funfun\inlineeval.m at line 13
In C:\matlabR12\toolbox\matlab\funfun\@inline\feval.m at line 34
In C:\matlabR12\toolbox\matlab\funfun\fzero.m at line 210
??? Error using ==> fzero
Function value at starting guess must be finite and real.

fzero('(x+1)*log10(x)-1.4',2)

ans =

2.5072

fplot('3*ln(x)-(sin(2*x+x)^2)',[0.1 5])
??? Error using ==> inlineeval
Error in inline expression ==> 3*ln(x)-(sin(2*x+x)^2)
??? Undefined function or variable 'ln'.

Error in ==> C:\matlabR12\toolbox\matlab\funfun\@inline\feval.m
On line 34 ==> INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);

Error in ==> C:\matlabR12\toolbox\matlab\specgraph\fplot.m
On line 96 ==> x = xmin; y = feval(fun,x,varargin{4:end});

fplot('3*log(x)-(sin(2*x+x)^2)',[0.1 5])
fplot('3*log(x)-(sin(2*x)^2-x)',[0.1 5])
fzero('3*log(x)-(sin(2*x)^2-x)',0)
Warning: Log of zero.
> In C:\matlabR12\toolbox\matlab\funfun\inlineeval.m at line 13
In C:\matlabR12\toolbox\matlab\funfun\@inline\feval.m at line 34
In C:\matlabR12\toolbox\matlab\funfun\fzero.m at line 210
??? Error using ==> fzero
Function value at starting guess must be finite and real.

clear

fplot('x^2-(1/3*x^2-1)-log10(x)-3',[0.1 5])
fzero('x^2-(1/3*x^2-1)-log10(x)-3',3)

ans =

1.8435

fplot('x^2-(1/3*x^2-1)-log10(x)-3',[0.1 0.5])
fzero('x^2-(1/3*x^2-1)-log10(x)-3',0.5)
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search
(Function value at -0.14 is -1.1331-1.3644i)
Check function or try again with a different starting value.

ans =

NaN

fplot('x^2-(1/3*x^2-1)-log10(x)-3',[0.1 2.5])
clear
f=inline('x^2-1/(3*x^2-1)-log10(x)-3')

f =

Inline function:
f(x) = x^2-1/(3*x^2-1)-log10(x)-3

fplot(f,[0.1 10])
grid on
fplot(f,[0.001 0.5])
grid on
x=fzero(f,0.01)

x =

0.010009

clear
fplot(',log(x)+asin(x)',[0.1 5])
??? Error using ==> inlineeval
Error in inline expression ==> ,log(x)+asin(x)
??? Error: Expected a variable, function, or constant, found ",".

Error in ==> C:\matlabR12\toolbox\matlab\funfun\@inline\feval.m
On line 34 ==> INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);

Error in ==> C:\matlabR12\toolbox\matlab\specgraph\fplot.m
On line 96 ==> x = xmin; y = feval(fun,x,varargin{4:end});

f=inline('log(x)+asin(x)')

f =

Inline function:
f(x) = log(x)+asin(x)

fplot(f,[0.1 10])
Warning: Imaginary parts of complex X and/or Y arguments ignored.
> In C:\matlabR12\toolbox\matlab\specgraph\fplot.m at line 146
grip on
??? grip on
|
Error: Missing operator, comma, or semicolon.

fplot(f,[0.1 5])
Warning: Imaginary parts of complex X and/or Y arguments ignored.
> In C:\matlabR12\toolbox\matlab\specgraph\fplot.m at line 146
fplot(f,[0.1 1])
fplot(f,[0.1 0.7])
grip on
??? grip on
|
Error: Missing operator, comma, or semicolon.

diary off


Wyszukiwarka

Podobne podstrony:
Zajęcia 1
Zajecia6
Prezentacja na zajęcia dostęp do informacji publicznej 9 10 2015 (1)
zajecia nr 9
efekty kształcenia terapia zajęciowa
Zajęcia 6 (FCZ KT)
Zajecia XII
zadania na zajęcia
Prezentacja na zajęcia zawody prawnicze 16 10 2015
Zajęcianr 1 EKS1A400034 BIOPALIWA Cwiczenie 1 2
Zajecia 5 Analizy statystyczne?nych jakosciowych
Podstawy baz danych zajecia 2 z SQL Tabela Biblioteka
zajecia1
Zajęcia 4

więcej podobnych podstron