Cody

# Problem 1914. GJam 2013 Veterans: Ocean View (Large)

Solution 1207310

Submitted on 7 Jun 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
tic vin=[636 246 970 933 361 461 584 712 636 765 900 534 318 948 214 664 649 649 218 159 962 712 215 173 238 112 898 670 665 321 652 653 918 621 585 631 433 520 694 68 285 593 954 954 540 167 970 188 167 187 346 480 899 912 652 488 375 550 157 40 222 808 692 492 781 628 122 565 147 167 985 783 759 938 89 651 104 58 838 623 244 536 102 494 799 106 981 526 7 137 917 228 297 608 71 77 587 544 641 85 ]; vexp=[87 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint1 (line 4) vout=Monotonic_V(vin);

2   Fail
vin=[985 569 223 420 941 721 504 441 137 145 386 238 4 330 967 408 312 508 90 528 598 922 865 273 505 167 830 764 724 854 486 60 422 60 479 715 781 983 507 269 479 892 506 482 573 472 241 884 331 330 412 929 603 628 553 108 795 383 223 870 236 61 929 10 120 759 76 900 93 582 520 571 825 378 405 397 201 645 632 532 327 395 812 929 23 716 36 169 98 259 38 686 671 966 47 790 724 122 42 817 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint2 (line 3) vout=Monotonic_V(vin);

3   Fail
vin=[135 80 276 388 795 610 328 961 849 699 154 297 970 548 332 87 647 929 231 574 290 843 993 572 407 364 828 688 492 986 8 979 417 636 366 212 597 45 524 445 744 29 93 65 577 424 152 575 705 382 500 994 576 844 566 334 208 745 21 51 731 29 29 499 16 746 710 612 791 585 56 886 614 148 950 542 924 453 116 980 834 615 973 761 810 890 95 17 635 115 68 717 495 448 215 510 194 277 473 336 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint3 (line 3) vout=Monotonic_V(vin);

4   Fail
vin=[864 390 641 710 429 314 838 487 749 444 866 162 381 48 901 119 756 642 595 851 197 72 856 600 290 187 648 679 619 273 739 834 14 379 895 442 692 733 928 792 528 145 305 908 193 205 378 300 847 973 150 395 396 357 995 685 896 994 716 514 618 454 699 631 832 594 73 875 678 352 666 205 497 970 464 41 526 193 340 724 165 842 471 561 550 465 597 445 810 312 310 427 117 9 57 300 954 481 174 631 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint4 (line 3) vout=Monotonic_V(vin);

5   Fail
vin=[522 452 169 41 289 988 837 890 666 829 487 3 346 671 544 443 177 411 525 643 380 167 717 566 460 105 253 724 179 487 742 700 290 263 93 578 602 929 467 267 757 306 270 454 976 165 896 153 927 773 147 307 939 864 872 750 320 476 473 498 314 567 550 603 829 994 180 430 922 647 48 30 304 669 483 279 834 730 783 760 854 282 66 144 145 290 893 816 765 366 665 79 932 214 33 112 207 213 541 480 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint5 (line 3) vout=Monotonic_V(vin);

6   Fail
vin=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 20 21 22 23 24 25 26 28 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 51 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 71 72 73 74 78 79 80 82 83 84 85 87 88 89 90 93 94 95 96 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116 117 118 119 120 122 123 124 125 126 127 128 129 134 138 140 141 142 143 144 145 146 147 148 149 150 151 152 155 157 158 160 164 165 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 184 185 186 187 189 190 191 192 193 194 195 196 197 198 199 200 202 203 204 205 206 207 208 209 210 212 213 214 215 216 218 220 221 222 223 224 225 226 227 228 229 230 231 233 234 235 236 237 238 242 243 244 246 247 248 249 250 251 252 254 255 256 258 259 261 262 263 265 266 267 268 269 270 271 272 273 274 275 276 277 279 280 281 282 283 284 286 287 288 289 292 294 295 297 298 299 300 302 303 304 306 307 308 309 310 311 312 313 314 315 316 318 321 324 325 327 328 330 331 334 335 336 337 339 340 342 343 344 345 346 348 349 350 351 352 353 354 355 357 358 359 363 364 365 366 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 388 390 391 393 394 395 397 398 399 401 402 403 404 405 406 407 408 409 410 413 415 416 418 419 420 421 422 423 424 425 427 428 430 431 432 433 435 437 438 440 441 442 443 445 446 447 449 451 452 453 455 457 458 459 460 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 504 505 507 508 509 510 511 512 513 514 515 516 517 518 520 521 524 525 527 528 529 530 531 533 536 537 540 541 542 543 544 545 546 547 549 550 551 552 553 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 577 579 580 581 582 584 585 586 587 588 590 591 592 593 595 597 598 599 600 603 604 605 606 607 610 611 615 616 617 619 620 621 622 623 624 625 626 627 628 630 632 633 634 635 638 641 642 643 644 645 646 648 649 651 653 654 655 656 657 658 659 661 663 664 665 666 667 668 669 670 671 672 673 675 677 678 680 682 683 684 685 686 687 688 689 690 691 692 693 694 696 697 698 700 702 704 705 706 709 710 711 712 713 714 715 717 718 719 720 721 722 723 724 725 726 727 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 748 749 750 751 752 753 754 755 756 757 758 759 761 762 764 766 767 768 769 771 772 773 774 776 777 778 779 780 781 782 783 785 786 788 789 790 791 792 793 794 795 796 797 798 800 801 802 803 804 805 806 807 808 809 810 812 813 815 816 817 818 819 820 821 822 823 824 826 827 829 830 831 832 833 837 838 839 840 841 842 843 844 845 846 847 848 849 851 852 853 854 855 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 877 879 881 882 883 884 887 888 890 891 892 893 894 895 896 898 899 900 901 903 904 905 906 908 909 911 912 913 914 915 916 917 918 919 920 921 922 923 924 927 928 929 930 931 932 933 935 936 937 938 941 942 943 944 945 946 949 950 951 952 953 954 955 956 957 958 960 961 962 963 965 966 967 970 971 972 973 974 975 978 979 980 981 982 983 984 985 986 989 991 992 993 994 995 996 997 998 1000 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 799

Assertion failed.

7   Fail
vin=[656 151 894 432 577 271 474 259 534 441 734 522 365 493 942 532 175 900 688 139 374 59 422 443 326 64 804 69 733 90 372 740 240 265 172 168 536 997 778 421 437 511 942 801 4 236 685 530 487 372 21 860 430 442 302 107 857 458 175 941 899 899 32 138 163 555 657 50 551 435 471 987 945 764 140 300 351 176 182 837 547 202 48 329 995 350 435 203 159 962 495 57 860 526 546 374 81 202 424 631 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint7 (line 3) vout=Monotonic_V(vin);

8   Fail
vin=[160 284 529 233 858 58 181 837 14 284 240 425 835 57 402 496 430 135 982 713 622 716 909 963 253 31 790 307 273 291 321 432 574 201 16 431 259 196 620 624 479 211 49 666 268 450 161 49 936 494 762 558 561 22 520 814 404 662 120 676 952 792 459 877 993 474 308 603 670 279 578 500 489 978 517 108 427 30 157 363 523 270 272 84 643 791 249 47 804 720 74 107 863 533 984 207 6 643 809 27 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint8 (line 3) vout=Monotonic_V(vin);

9   Fail
vin=[717 997 953 616 739 418 429 967 875 551 327 828 991 994 841 796 268 640 537 215 847 996 558 831 282 117 696 696 386 518 188 103 867 140 70 957 557 498 923 783 400 601 962 391 595 803 538 214 794 74 428 640 70 337 823 351 454 518 398 191 388 585 293 254 724 715 562 280 564 484 414 964 436 376 706 30 530 243 595 323 668 375 314 89 711 136 792 516 6 189 707 745 774 351 350 497 65 911 129 629 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint9 (line 3) vout=Monotonic_V(vin);

10   Fail
vin=[339 92 136 280 51 932 913 389 388 240 645 424 760 147 8 880 39 875 953 822 525 377 243 505 978 181 421 497 443 665 862 133 108 998 412 158 281 677 898 668 916 543 91 675 689 451 906 79 677 210 901 201 587 495 705 564 27 477 60 469 493 274 601 600 623 365 110 903 41 7 922 956 901 364 982 941 166 888 20 842 97 272 43 35 766 99 598 792 576 10 613 420 283 565 20 905 929 129 159 969 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint10 (line 3) vout=Monotonic_V(vin);

11   Pass
vin=[1 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 0

12   Fail
vin=[3 4 6 7 10 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 4

Assertion failed.

13   Fail
vin=[902 371 99 852 750 675 90 760 805 58 948 19 245 440 484 372 354 920 794 849 927 838 454 61 432 979 709 266 797 673 155 698 395 253 902 144 927 991 256 731 400 203 101 996 642 936 719 348 856 512 196 134 701 649 194 484 628 255 102 424 927 256 122 673 508 375 169 434 365 424 517 765 978 969 112 971 905 831 318 112 694 514 245 395 162 791 878 789 45 331 565 323 586 38 347 93 412 515 879 776 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint13 (line 3) vout=Monotonic_V(vin);

14   Fail
vin=[745 222 207 664 944 756 340 17 820 810 426 512 977 342 97 68 374 759 193 308 24 106 963 317 227 746 262 260 405 645 380 149 866 938 164 162 694 504 178 865 313 955 376 641 297 824 60 22 583 252 330 958 358 644 274 936 389 535 195 145 179 575 646 397 512 809 558 557 312 87 422 977 393 149 617 41 973 677 63 907 280 744 864 989 387 489 924 127 23 119 623 554 45 268 302 556 77 859 465 740 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint14 (line 3) vout=Monotonic_V(vin);

15   Fail
vin=[483 135 335 407 908 857 578 767 378 156 248 269 292 372 111 5 821 150 426 334 446 615 791 5 517 928 677 194 68 908 122 550 42 808 309 302 664 886 420 41 41 668 309 684 39 771 688 212 921 465 545 366 79 687 722 595 614 398 140 33 657 261 583 698 420 891 999 84 128 771 476 520 438 137 203 828 907 242 391 179 706 287 544 784 973 617 730 939 14 869 971 670 481 905 720 900 147 70 335 274 ]; vexp=[80 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint15 (line 3) vout=Monotonic_V(vin);

16   Fail
vin=[449 699 779 845 562 962 785 857 407 939 248 891 282 197 497 444 329 886 476 573 390 526 492 686 583 679 622 471 498 176 415 946 875 545 143 788 506 927 644 264 218 244 155 851 440 651 646 768 888 121 693 277 998 184 314 580 214 935 50 63 110 816 9 336 712 503 123 217 429 119 481 646 362 987 848 153 989 493 272 876 613 964 504 962 499 817 893 64 751 294 127 860 461 487 196 172 989 670 389 769 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint16 (line 3) vout=Monotonic_V(vin);

17   Fail
vin=[506 358 525 125 131 493 597 657 174 465 212 984 660 340 197 879 464 893 546 146 446 858 66 893 292 295 771 364 324 233 803 830 591 327 306 73 819 254 81 345 70 644 328 729 984 524 960 447 768 505 944 566 362 10 458 653 304 228 369 628 812 523 809 754 849 466 827 20 719 259 716 789 903 43 869 238 919 828 36 38 685 980 603 46 989 60 51 292 639 771 271 803 293 431 556 141 896 382 512 967 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint17 (line 3) vout=Monotonic_V(vin);

18   Fail
vin=[4 201 457 409 579 138 659 919 860 512 119 881 554 984 460 612 370 104 453 607 792 323 877 982 906 932 419 986 615 397 771 618 950 580 378 528 69 37 446 280 900 917 160 806 900 972 417 269 75 222 227 219 896 455 200 801 386 618 138 1000 367 909 970 316 840 699 195 908 87 992 187 987 908 699 792 807 670 560 428 744 133 654 314 29 461 514 829 846 483 967 198 201 227 519 516 418 217 62 325 656 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint18 (line 3) vout=Monotonic_V(vin);

19   Fail
vin=[536 287 975 835 202 487 189 178 104 222 6 933 565 70 493 646 121 949 836 462 586 175 876 615 42 687 243 401 489 327 78 24 613 404 858 166 890 398 344 345 620 701 629 536 770 121 533 242 421 368 703 7 894 930 973 935 968 215 688 457 893 117 480 857 872 690 23 113 87 718 458 58 770 86 945 891 559 477 132 979 196 186 337 90 467 309 376 434 875 415 890 767 531 722 624 402 763 998 867 849 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint19 (line 3) vout=Monotonic_V(vin);

20   Fail
vin=[833 191 187 681 160 2 73 38 194 412 113 711 605 583 623 155 399 219 599 208 883 909 986 999 269 395 299 222 875 824 204 59 15 390 91 526 743 163 563 936 927 676 646 531 610 268 37 9 839 636 568 721 896 554 71 516 948 369 89 174 193 292 585 559 33 675 84 775 838 647 62 764 674 708 646 283 327 683 643 517 670 211 237 917 764 660 784 63 28 872 236 572 515 820 130 899 495 214 673 684 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint20 (line 3) vout=Monotonic_V(vin);

21   Fail
vin=[4 3 2 1 ]; vexp=[3 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint21 (line 3) vout=Monotonic_V(vin);

22   Fail
vin=[544 765 207 299 570 502 839 142 76 830 438 777 696 718 720 628 215 31 72 544 666 606 940 218 865 169 973 254 550 831 129 446 948 335 744 517 188 582 10 616 764 447 392 459 164 464 438 731 846 509 626 511 114 565 80 331 85 52 584 634 235 64 79 534 750 174 50 937 108 411 552 871 858 296 681 373 759 119 455 956 979 432 466 93 348 898 775 432 301 358 66 887 421 496 420 522 22 821 458 129 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint22 (line 3) vout=Monotonic_V(vin);

23   Fail
vin=[785 582 933 107 851 569 822 33 992 796 966 99 985 62 5 70 257 409 548 674 546 105 824 71 10 447 326 723 819 799 22 955 380 306 62 582 874 883 966 217 30 931 316 15 993 320 84 601 728 983 626 273 87 801 695 96 247 373 819 65 171 192 372 902 497 433 835 723 667 800 939 697 83 606 63 427 925 498 27 4 480 653 629 919 453 323 366 52 695 536 116 217 727 839 118 576 623 304 650 290 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint23 (line 3) vout=Monotonic_V(vin);

24   Fail
vin=[379 605 855 323 94 992 160 884 141 954 836 48 258 937 651 919 261 967 418 311 554 590 622 688 538 87 844 682 520 888 740 250 845 594 925 938 586 436 822 78 390 9 477 647 297 128 918 557 94 335 220 1000 276 193 687 165 279 882 846 151 122 585 752 966 531 676 255 468 112 76 545 501 436 21 147 733 500 416 641 594 750 860 945 377 52 983 542 331 865 739 833 986 676 584 303 206 260 557 673 371 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint24 (line 3) vout=Monotonic_V(vin);

25   Fail
vin=[954 932 241 707 209 356 476 772 941 695 374 528 156 421 13 187 443 842 884 139 129 463 369 117 721 356 808 952 976 529 501 929 812 93 987 20 449 814 143 741 508 516 620 16 936 985 202 730 826 85 868 954 548 589 422 620 296 230 923 271 110 423 551 922 516 889 941 316 703 84 408 210 951 27 577 239 11 778 968 836 215 188 141 114 776 915 85 71 144 8 693 253 782 595 526 649 483 467 964 537 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint25 (line 3) vout=Monotonic_V(vin);

26   Fail
vin=[1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 ]; vexp=[999 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint26 (line 3) vout=Monotonic_V(vin);

27   Fail
vin=[861 880 573 826 28 522 719 303 975 834 282 160 800 606 921 962 496 15 978 482 481 397 198 328 845 412 189 390 688 662 77 901 541 649 78 920 522 797 222 848 982 855 8 134 461 280 95 956 294 424 437 126 821 986 453 17 397 642 758 437 303 186 689 195 186 766 115 707 914 688 907 248 895 914 381 355 193 827 662 838 250 450 315 422 435 768 438 183 761 547 971 415 732 659 609 269 777 75 328 690 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint27 (line 3) vout=Monotonic_V(vin);

28   Fail
vin=[212 86 799 237 145 796 871 824 830 514 340 499 724 577 767 487 236 550 901 615 773 136 539 639 308 20 537 802 585 561 837 148 647 987 384 143 782 607 966 612 120 306 462 843 234 229 681 821 130 581 435 255 68 325 893 375 697 782 528 281 342 364 429 340 350 164 483 484 770 448 95 241 753 556 435 338 136 467 158 266 399 945 872 467 269 764 841 965 897 721 598 239 436 378 930 138 541 412 621 663 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint28 (line 3) vout=Monotonic_V(vin);

29   Fail
vin=[153 433 497 818 590 42 657 625 619 100 678 271 684 627 284 600 980 569 862 178 530 692 225 1 239 891 474 710 719 529 477 872 313 973 689 255 15 697 879 633 148 909 255 831 535 890 430 866 459 644 44 340 335 620 340 925 510 165 986 229 694 462 100 358 434 140 612 800 836 843 784 984 751 391 166 637 280 948 855 90 943 250 429 629 869 768 905 379 285 890 959 330 351 410 687 136 549 299 288 736 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint29 (line 3) vout=Monotonic_V(vin);

30   Fail
vin=[422 107 359 466 750 64 127 249 677 702 213 920 568 385 70 37 787 149 971 26 915 76 17 851 728 43 738 163 767 379 341 540 838 51 357 939 466 483 188 143 184 752 62 751 137 484 139 275 632 462 300 898 537 316 749 265 359 838 779 477 569 471 368 758 521 724 696 987 558 883 481 741 987 542 843 123 25 334 749 9 147 48 906 683 715 6 299 73 196 78 901 764 900 268 521 421 343 216 759 900 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint30 (line 3) vout=Monotonic_V(vin);

31   Fail
vin=[830 800 491 470 290 893 711 316 603 32 241 822 608 314 513 533 514 537 19 447 670 582 20 35 543 428 35 411 413 882 8 594 33 498 63 674 743 125 990 697 156 230 870 764 895 735 648 408 271 19 207 292 952 578 326 846 5 712 257 769 945 264 362 329 114 776 3 856 900 344 904 407 925 774 522 819 508 170 579 130 540 785 773 843 714 450 688 70 161 944 838 458 560 551 786 673 678 788 880 929 ]; vexp=[79 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint31 (line 3) vout=Monotonic_V(vin);

32   Fail
vin=[43 360 9 945 127 32 574 617 273 710 476 930 679 187 746 569 725 493 693 539 527 933 487 508 562 719 739 403 813 707 484 855 67 493 151 545 876 725 162 500 434 989 429 112 176 526 32 252 19 77 790 545 9 629 404 922 699 143 676 864 849 511 70 267 3 221 164 230 297 325 730 730 313 158 194 840 684 577 443 54 653 585 598 13 565 353 934 263 847 609 478 48 120 548 314 474 120 477 704 416 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint32 (line 3) vout=Monotonic_V(vin);

33   Fail
vin=[290 747 892 267 715 356 238 619 186 555 82 879 420 327 625 582 469 855 722 865 185 638 187 771 675 533 215 86 400 93 214 689 839 457 956 906 812 545 876 349 451 958 580 871 284 204 804 104 410 877 968 947 515 506 69 189 38 283 627 789 728 840 478 918 296 785 823 460 329 699 808 779 656 739 649 291 943 804 394 704 681 713 650 195 218 718 383 607 353 9 396 80 200 225 997 848 9 820 307 337 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint33 (line 3) vout=Monotonic_V(vin);

34   Fail
vin=[226 923 398 567 407 187 615 980 2 14 380 144 628 177 231 799 501 612 159 124 261 636 742 374 458 143 404 885 207 225 671 784 147 420 703 905 958 669 236 312 682 615 455 309 144 37 460 996 648 618 119 909 605 212 282 414 354 37 651 561 261 321 696 759 93 398 663 50 419 251 361 100 865 167 761 8 203 220 3 851 837 473 111 793 685 392 206 38 781 856 950 393 529 998 152 973 747 166 22 165 ]; vexp=[80 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint34 (line 3) vout=Monotonic_V(vin);

35   Fail
vin=[456 940 338 538 898 400 964 822 249 990 178 80 994 806 998 799 480 364 850 175 899 317 743 978 156 861 905 778 516 906 419 971 845 108 508 742 859 823 916 107 165 445 187 158 250 184 956 81 899 157 255 150 474 998 127 981 210 383 110 77 288 529 48 484 988 907 578 847 730 845 953 894 289 139 403 890 675 711 970 573 867 577 722 692 926 200 672 135 934 134 563 221 14 610 57 1 517 986 847 598 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint35 (line 3) vout=Monotonic_V(vin);

36   Fail
vin=[416 735 265 633 901 377 640 456 596 995 306 784 819 768 576 855 159 133 245 939 341 546 332 221 543 835 193 290 1000 566 806 416 300 70 48 201 446 39 656 393 385 313 176 204 80 103 410 590 236 654 881 928 200 564 148 94 398 340 735 749 905 541 164 557 962 563 109 408 954 116 152 338 780 328 893 859 782 303 800 369 956 680 296 507 595 443 953 992 134 687 741 391 227 256 947 189 171 407 948 124 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint36 (line 3) vout=Monotonic_V(vin);

37   Fail
vin=[28 33 63 78 82 85 92 101 113 125 138 175 183 196 211 224 250 287 345 368 388 426 447 477 491 504 524 575 579 581 621 694 712 720 737 745 747 784 793 802 813 827 829 853 858 919 924 929 939 960 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 49

Assertion failed.

38   Fail
vin=[751 767 289 186 348 753 835 126 830 440 200 582 596 824 917 356 380 767 870 274 279 308 426 749 518 607 719 233 246 57 756 348 823 396 885 170 500 719 647 329 158 198 263 753 21 179 461 752 297 682 26 927 989 803 28 858 762 746 442 7 154 197 706 977 593 590 498 92 308 497 773 818 46 35 922 419 565 734 170 861 416 547 140 404 702 167 262 463 264 703 821 417 252 526 745 196 115 595 287 774 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint38 (line 3) vout=Monotonic_V(vin);

39   Fail
vin=[1 2 4 3 5 6 8 7 10 9 11 12 14 13 15 16 17 19 18 20 21 22 24 23 25 26 28 27 30 29 31 32 33 34 36 35 37 38 40 39 41 43 42 44 45 46 48 47 50 49 51 52 53 55 54 56 57 58 60 59 61 63 62 64 65 66 68 67 69 71 70 72 73 74 76 75 78 77 79 80 82 81 83 84 85 87 86 88 89 91 90 92 93 94 96 95 98 97 99 100 101 102 104 103 106 105 107 108 110 109 111 112 114 113 115 116 118 117 119 120 121 123 122 124 125 127 126 128 130 129 131 132 134 133 135 136 137 139 138 140 141 142 144 143 145 146 148 147 149 151 150 152 154 153 155 156 157 158 160 159 162 161 163 164 165 166 168 167 169 170 172 171 173 174 176 175 178 177 179 180 181 182 184 183 186 185 187 188 190 189 191 192 194 193 195 196 198 197 199 200 201 203 202 204 206 205 207 208 209 210 212 211 214 213 215 216 217 219 218 220 221 222 224 223 226 225 227 228 229 230 232 231 233 235 234 236 237 239 238 240 242 241 243 244 246 245 247 248 250 249 251 252 254 253 255 256 257 259 258 260 261 263 262 264 265 266 268 267 269 270 272 271 274 273 275 276 278 277 279 280 281 283 282 284 285 287 286 288 290 289 291 292 293 295 294 296 298 297 299 300 301 303 302 304 305 307 306 308 309 310 312 311 313 315 314 316 317 318 320 319 321 322 324 323 326 325 327 328 330 329 331 332 334 333 335 336 337 339 338 340 341 342 344 343 346 345 347 348 349 350 352 351 353 354 356 355 357 359 358 360 362 361 363 364 365 366 368 367 370 369 371 372 373 375 374 376 377 378 380 379 381 383 382 384 386 385 387 388 390 389 391 392 393 395 394 396 397 399 398 400 401 403 402 404 406 405 407 408 409 410 412 411 413 415 414 416 417 418 420 419 421 423 422 424 426 425 427 428 430 429 431 432 433 435 434 436 437 439 438 440 442 441 443 444 445 447 446 448 450 449 451 452 453 455 454 456 457 459 458 460 461 462 464 463 465 467 466 468 469 470 472 471 473 475 474 476 478 477 479 480 481 483 482 484 486 485 487 488 490 489 491 492 493 495 494 496 497 499 498 500 501 502 504 503 505 507 506 508 509 511 510 512 514 513 515 516 517 518 520 519 522 521 523 524 525 527 526 528 530 529 531 532 533 535 534 536 538 537 539 540 542 541 543 544 545 546 548 547 550 549 551 552 553 555 554 556 557 559 558 560 562 561 563 564 565 566 568 567 569 570 572 571 574 573 575 576 578 577 579 580 581 583 582 584 585 586 588 587 589 590 592 591 593 595 594 596 597 599 598 600 601 602 604 603 605 606 608 607 609 611 610 612 614 613 615 616 617 618 620 619 622 621 623 624 626 625 627 628 629 631 630 632 633 634 636 635 638 637 639 640 641 643 642 644 646 645 647 648 650 649 651 652 653 654 656 655 657 659 658 660 662 661 663 664 666 665 667 668 669 671 670 672 673 675 674 676 677 679 678 680 682 681 683 684 685 686 688 687 689 691 690 692 693 694 696 695 697 698 700 699 701 702 704 703 705 707 706 708 709 710 712 711 713 714 716 715 717 718 720 719 722 721 723 724 725 726 728 727 730 729 731 732 734 733 735 736 738 737 739 740 741 742 744 743 746 745 747 748 749 751 750 752 753 755 754 756 758 757 759 760 761 763 762 764 765 766 768 767 769 771 770 772 773 775 774 776 777 778 780 779 782 781 783 784 785 786 788 787 789 790 792 791 793 794 796 795 797 799 798 800 801 802 804 803 805 806 808 807 810 809 811 812 814 813 815 816 817 818 820 819 822 821 823 824 826 825 827 828 829 831 830 832 834 833 835 836 837 838 840 839 841 843 842 844 846 845 847 848 849 850 852 851 853 854 856 855 857 859 858 860 861 862 864 863 865 866 868 867 869 870 872 871 873 875 874 876 878 877 879 880 882 881 883 884 885 886 888 887 889 890 892 891 893 895 894 896 897 898 900 899 902 901 903 904 905 906 908 907 909 910 912 911 914 913 915 916 917 918 920 919 921 923 922 924 925 926 928 927 929 930 932 931 933 935 934 936 938 937 939 940 941 942 944 943 945 946 948 947 949 951 950 952 954 953 955 956 957 958 960 959 962 961 963 964 965 967 966 968 970 969 971 972 974 973 975 976 977 979 978 980 981 982 984 983 986 985 987 988 990 989 991 992 993 995 994 996 997 999 998 1000 ]; vexp=[250 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint39 (line 3) vout=Monotonic_V(vin);

40   Fail
vin=[19 19 ]; vexp=[1 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint40 (line 3) vout=Monotonic_V(vin);

41   Fail
vin=[1 4 3 3 ]; vexp=[2 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint41 (line 3) vout=Monotonic_V(vin);

42   Fail
vin=[815 768 572 413 61 287 382 520 43 814 125 344 903 447 878 702 868 762 461 590 511 448 907 997 74 333 918 953 644 230 54 810 349 625 222 409 264 955 280 306 120 756 1 22 203 878 76 422 991 536 12 853 983 918 850 57 603 767 361 598 348 766 408 696 743 981 104 6 936 383 663 55 138 15 429 692 244 504 114 234 39 477 87 21 394 288 429 996 406 141 594 753 907 1 448 649 333 903 6 268 ]; vexp=[87 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint42 (line 3) vout=Monotonic_V(vin);

43   Fail
vin=[715 324 259 836 409 555 726 967 384 857 298 931 42 986 20 508 647 748 941 873 162 183 992 45 256 967 798 18 964 664 218 30 987 828 865 748 383 590 66 118 446 715 48 839 701 420 346 347 519 638 571 680 172 562 76 779 528 874 796 843 537 366 872 876 193 88 623 927 677 40 44 474 755 444 312 455 863 9 153 381 999 723 412 522 637 488 301 164 361 96 7 249 461 230 124 6 318 98 932 346 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint43 (line 3) vout=Monotonic_V(vin);

44   Fail
vin=[522 99 461 301 778 354 511 560 8 662 280 315 694 576 174 288 370 126 632 856 812 724 246 391 979 544 931 501 950 230 624 823 328 437 475 458 142 985 369 149 646 648 463 339 223 988 979 945 113 610 800 277 333 45 19 663 940 949 164 241 178 787 63 857 223 537 666 716 873 34 864 870 682 679 209 256 666 187 200 131 148 351 407 480 395 425 142 686 725 305 926 254 444 340 110 18 876 776 734 100 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint44 (line 3) vout=Monotonic_V(vin);

45   Fail
vin=[986 869 904 402 636 104 209 757 705 337 301 740 169 404 572 415 22 827 117 133 872 263 503 640 737 654 616 432 752 268 954 737 136 858 138 772 313 698 528 18 386 180 109 906 583 32 320 956 859 436 88 82 50 591 73 138 596 41 570 347 308 523 83 443 380 572 566 45 621 445 62 6 625 522 911 559 554 230 515 764 18 954 197 67 896 269 205 491 661 774 837 968 648 271 763 28 194 328 424 814 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint45 (line 3) vout=Monotonic_V(vin);

46   Fail
vin=[835 78 7 863 573 841 832 653 720 351 56 298 397 179 562 636 299 542 569 853 327 320 54 147 328 355 444 206 343 100 546 529 529 904 392 102 96 575 106 816 926 514 465 674 692 27 309 990 568 229 195 246 900 248 392 579 954 187 785 648 638 330 177 519 233 920 972 329 494 77 496 771 590 960 796 634 986 105 975 905 685 521 150 585 768 893 515 74 432 299 73 421 980 601 939 565 520 910 245 14 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint46 (line 3) vout=Monotonic_V(vin);

47   Fail
vin=[626 750 682 840 23 620 651 542 846 79 714 942 624 759 272 636 101 647 505 954 823 212 398 949 431 870 68 568 133 370 720 758 471 753 949 845 725 952 387 570 382 452 864 6 210 135 641 662 133 145 615 307 708 365 255 138 586 675 706 718 396 777 828 866 882 776 710 606 727 448 527 461 900 390 466 461 877 458 123 361 954 89 668 662 805 922 799 390 948 856 108 343 985 287 208 866 62 270 471 141 ]; vexp=[79 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint47 (line 3) vout=Monotonic_V(vin);

48   Fail
vin=[235 228 987 190 889 791 317 684 110 217 895 566 657 188 402 731 514 485 602 606 767 410 328 583 701 500 772 884 333 161 654 919 740 993 461 629 135 129 312 244 346 206 161 2 394 562 84 259 399 685 865 165 447 544 99 499 395 870 382 79 382 388 997 122 732 457 750 866 938 413 109 283 971 270 636 716 183 72 974 581 108 190 97 554 733 196 405 479 417 786 557 799 525 554 272 256 362 373 121 299 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint48 (line 3) vout=Monotonic_V(vin);

49   Fail
vin=[993 227 107 247 622 327 484 892 155 519 281 839 498 884 236 838 295 638 482 286 408 752 88 700 535 643 193 782 377 56 748 721 635 206 967 608 533 802 499 39 320 779 229 170 14 464 7 661 454 840 946 213 592 385 265 478 27 457 259 755 864 7 475 498 564 793 105 96 594 955 134 266 86 362 787 99 178 145 759 983 985 56 195 928 440 459 405 819 267 663 573 131 21 400 980 585 544 437 32 138 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint49 (line 3) vout=Monotonic_V(vin);

50   Fail
vin=[637 668 675 126 34 103 818 277 606 283 510 996 759 948 368 504 587 149 500 992 289 445 744 547 797 543 195 129 445 552 749 81 571 423 207 604 877 376 880 834 10 742 829 120 41 196 975 628 696 474 619 985 270 715 883 66 257 430 547 702 981 647 134 552 69 692 155 945 419 35 130 780 776 958 251 816 505 226 795 201 699 766 537 321 480 419 738 736 848 636 789 829 282 275 732 350 318 886 646 737 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint50 (line 3) vout=Monotonic_V(vin);

51   Fail
vin=[520 971 78 333 535 918 930 357 193 69 399 244 246 841 552 833 468 478 785 476 173 296 215 260 277 366 692 711 363 448 381 235 418 459 919 304 728 848 660 272 916 410 868 513 602 419 346 70 249 482 545 421 130 111 681 758 828 724 468 190 171 201 776 940 659 694 244 738 893 255 361 161 17 228 673 618 999 18 687 247 852 583 667 981 693 699 738 520 423 557 710 945 757 837 237 767 531 832 856 775 ]; vexp=[78 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint51 (line 3) vout=Monotonic_V(vin);

52   Fail
vin=[161 949 970 194 627 530 802 645 68 353 775 215 704 181 694 450 957 187 136 33 844 61 286 287 753 747 656 628 874 389 80 35 690 49 228 316 578 381 312 645 734 86 211 437 618 904 886 574 442 21 606 285 434 243 923 186 990 579 165 863 319 244 897 8 644 477 676 221 857 987 217 590 425 427 378 42 682 264 968 124 636 573 760 421 168 683 958 157 613 123 19 283 718 268 643 362 744 670 934 952 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint52 (line 3) vout=Monotonic_V(vin);

53   Fail
vin=[921 739 879 409 716 747 869 495 776 25 857 651 646 480 86 288 622 686 334 426 757 408 532 619 292 515 826 649 157 986 28 429 724 906 838 440 4 706 934 132 82 142 782 727 973 219 366 594 256 700 19 12 459 903 982 750 769 807 398 278 145 425 706 868 682 543 659 686 600 944 817 33 437 950 759 409 520 477 355 775 176 725 786 634 627 767 735 396 926 132 673 70 909 378 289 590 273 300 275 224 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint53 (line 3) vout=Monotonic_V(vin);

54   Fail
vin=[211 588 861 514 609 695 144 442 425 927 553 630 208 971 774 704 612 666 871 376 31 535 806 314 101 839 425 659 403 965 139 613 905 999 126 513 694 269 306 470 547 210 99 106 180 872 161 791 890 31 519 272 566 676 586 666 866 10 324 268 327 814 880 583 165 5 95 858 626 752 679 172 961 777 630 141 1 790 283 242 821 801 513 738 829 98 403 694 460 78 962 786 244 841 368 408 198 814 617 175 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint54 (line 3) vout=Monotonic_V(vin);

55   Fail
vin=[345 356 192 379 626 146 339 157 374 419 580 561 192 746 68 231 668 760 231 149 516 13 702 426 515 688 214 702 980 729 501 324 436 692 55 414 189 745 922 914 515 501 827 58 246 894 288 265 654 519 766 521 883 819 298 397 507 512 98 838 240 951 513 28 642 919 441 183 663 362 448 530 215 274 587 812 168 227 77 173 745 194 693 979 12 991 375 518 854 825 355 93 775 220 472 768 138 912 302 153 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint55 (line 3) vout=Monotonic_V(vin);

56   Fail
vin=[55 561 739 879 938 143 627 491 788 610 374 114 357 185 42 379 252 430 547 702 40 936 387 710 253 785 499 328 258 892 496 312 453 235 542 742 377 520 232 516 129 605 981 485 141 375 215 745 804 113 446 195 48 184 904 652 968 754 980 225 646 475 888 450 709 429 191 438 300 775 953 428 731 934 265 224 308 831 968 463 944 413 657 343 596 912 995 563 665 326 139 662 152 26 111 213 806 654 650 105 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint56 (line 3) vout=Monotonic_V(vin);

57   Fail
vin=[115 234 289 9 499 669 715 43 847 376 880 97 177 546 518 963 313 308 145 425 206 468 839 290 126 800 558 254 874 885 296 988 470 584 348 968 605 62 10 451 789 241 547 317 787 417 279 451 76 776 876 281 243 714 570 368 513 480 622 739 364 917 78 186 852 426 153 456 839 163 907 980 403 453 296 189 221 575 992 296 350 867 929 592 580 498 311 445 329 284 183 45 552 260 230 404 37 382 859 876 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint57 (line 3) vout=Monotonic_V(vin);

58   Fail
vin=[377 312 592 156 382 321 20 986 965 831 995 59 736 919 383 679 650 258 427 674 392 926 663 374 319 161 553 406 353 268 485 729 931 428 237 664 100 256 649 64 439 995 474 526 266 857 204 915 114 631 940 857 908 955 230 578 115 134 335 819 753 172 548 35 951 784 698 403 391 698 818 181 693 292 706 310 500 262 576 613 892 515 821 151 469 402 80 935 888 414 754 992 937 301 27 888 436 724 290 178 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint58 (line 3) vout=Monotonic_V(vin);

59   Fail
vin=[4 5 6 1 7 ]; vexp=[1 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint59 (line 3) vout=Monotonic_V(vin);

60   Fail
vin=[702 390 16 146 565 919 452 746 471 596 64 700 367 25 892 634 431 175 691 493 279 938 37 406 397 833 103 910 422 299 743 475 41 759 621 605 677 424 702 499 371 117 550 737 141 442 370 923 968 412 415 246 349 804 3 97 636 105 6 409 755 749 236 795 859 208 751 535 631 804 386 1 921 935 89 413 376 458 336 695 222 102 940 570 905 294 667 540 398 24 301 505 124 536 651 982 743 402 517 373 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint60 (line 3) vout=Monotonic_V(vin);

61   Pass
vin=[13 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 0

62   Fail
vin=[294 606 149 273 390 992 232 883 106 284 406 537 904 323 960 281 898 282 973 120 668 189 94 950 572 109 382 247 197 864 338 490 470 838 762 859 829 345 93 287 629 850 823 884 173 783 165 422 416 489 541 84 677 634 33 600 94 415 847 290 630 184 779 99 373 892 310 201 589 754 487 217 604 662 452 128 444 968 549 859 456 89 294 485 74 327 84 520 93 930 809 722 465 940 173 837 183 482 390 771 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint62 (line 3) vout=Monotonic_V(vin);

63   Fail
vin=[138 328 820 892 771 483 698 985 844 850 717 842 924 128 363 560 967 15 76 679 111 434 928 923 663 51 280 980 149 564 326 286 891 497 177 13 331 874 349 174 75 65 367 350 544 82 262 863 96 689 541 558 122 468 833 784 519 112 116 19 675 441 304 917 289 832 281 619 57 629 145 483 45 863 184 941 944 445 803 392 133 343 949 254 811 781 390 681 893 505 51 919 297 706 188 585 889 468 555 945 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint63 (line 3) vout=Monotonic_V(vin);

64   Fail
vin=[13 17 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 1

Assertion failed.

65   Fail
vin=[976 853 243 180 658 979 923 226 893 655 966 40 37 892 748 564 93 396 415 245 255 203 54 735 935 446 55 146 523 568 947 850 420 541 29 429 519 304 655 411 310 972 450 347 863 550 262 956 945 676 200 199 231 605 933 165 50 339 662 924 906 608 773 678 500 154 106 18 457 112 428 766 436 230 464 298 779 726 605 723 753 805 273 983 761 557 499 163 895 512 86 153 471 211 830 970 364 287 987 172 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint65 (line 3) vout=Monotonic_V(vin);

66   Fail
vin=[988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 988 ]; vexp=[999 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint66 (line 3) vout=Monotonic_V(vin);

67   Fail
vin=[493 423 719 243 813 237 231 93 184 85 534 478 686 963 106 555 82 362 285 366 251 243 695 953 652 382 440 552 32 79 287 524 502 6 118 314 594 348 758 777 785 292 606 470 254 711 376 335 424 660 53 674 254 747 978 257 480 417 808 511 848 95 34 349 452 503 662 45 851 772 173 987 63 778 808 668 840 184 2 263 195 406 288 449 153 265 705 632 33 513 495 880 959 880 228 410 383 242 454 585 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint67 (line 3) vout=Monotonic_V(vin);

68   Fail
vin=[297 238 716 689 386 333 730 710 361 144 616 992 887 831 981 625 319 904 103 694 374 725 599 418 345 900 326 421 110 790 160 406 27 876 446 764 560 527 474 272 22 441 263 260 624 243 236 942 499 338 987 872 415 937 290 759 836 967 531 297 756 690 54 134 917 500 897 828 378 722 99 400 163 714 659 786 308 895 79 158 584 418 30 350 354 671 108 542 637 990 838 744 32 892 877 948 743 125 128 120 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint68 (line 3) vout=Monotonic_V(vin);

69   Fail
vin=[961 238 790 232 341 217 876 109 914 771 275 778 761 924 820 756 37 283 58 200 170 971 229 962 481 406 83 173 107 819 779 419 409 921 651 749 137 878 857 403 648 483 180 760 406 351 515 794 986 924 345 155 246 925 469 726 331 551 251 789 369 29 208 777 301 210 877 438 87 85 840 87 568 371 198 325 73 65 471 58 340 167 565 586 92 33 663 774 583 913 562 303 294 121 432 594 682 660 383 121 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint69 (line 3) vout=Monotonic_V(vin);

70   Fail
vin=[17 13 ]; vexp=[1 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint70 (line 3) vout=Monotonic_V(vin);

71   Fail
vin=[847 578 871 9 291 882 146 951 776 224 108 711 993 489 61 347 511 520 240 147 510 77 242 541 320 470 840 62 595 967 534 441 545 404 801 187 285 946 137 412 521 597 123 866 85 535 564 596 54 803 94 915 879 336 455 199 157 295 612 751 613 145 543 157 549 343 696 185 640 184 597 513 780 71 730 865 605 293 460 658 95 905 573 973 592 379 523 749 25 135 499 638 631 394 146 179 88 193 716 80 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint71 (line 3) vout=Monotonic_V(vin);

72   Pass
vin=[1000 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 0

73   Fail
vin=[11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 ]; vexp=[0 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Q = 984

Assertion failed.

74   Fail
vin=[595 443 257 384 392 367 144 911 843 498 37 18 223 174 3 201 293 89 596 570 221 620 639 129 350 279 70 622 930 697 197 877 139 453 260 883 820 403 145 14 253 182 384 827 355 386 27 999 827 975 568 47 594 558 527 295 837 948 268 118 644 465 994 783 917 605 665 88 360 809 102 612 342 485 438 49 222 816 47 48 790 615 446 736 172 324 30 360 272 298 478 267 114 471 49 30 428 65 470 787 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint74 (line 3) vout=Monotonic_V(vin);

75   Fail
vin=[780 954 884 510 239 148 85 898 331 52 360 274 464 368 968 411 279 314 325 296 991 463 957 143 840 420 355 645 73 4 749 852 309 985 713 548 132 798 445 814 849 157 439 665 524 407 427 155 72 752 450 63 566 406 205 758 825 911 402 249 914 503 452 222 487 165 121 970 314 918 784 514 74 222 178 597 980 957 103 404 60 552 466 977 310 22 734 486 932 488 735 197 990 186 770 828 702 243 149 15 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint75 (line 3) vout=Monotonic_V(vin);

76   Fail
vin=[13 978 571 427 755 378 94 946 913 447 208 108 853 495 908 5 111 964 988 143 828 482 23 786 362 602 195 96 195 1000 680 559 329 250 985 83 979 430 28 892 877 587 999 729 433 258 85 543 221 424 38 49 258 412 834 971 13 381 66 560 732 745 118 61 994 455 495 972 884 875 215 760 461 565 840 246 822 924 788 43 700 177 91 957 588 276 927 953 8 344 512 740 88 629 152 433 435 646 756 319 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint76 (line 3) vout=Monotonic_V(vin);

77   Fail
vin=[451 239 992 437 132 835 911 157 520 659 517 666 58 774 700 772 780 999 197 975 428 97 90 327 717 962 99 59 529 857 959 979 447 950 767 579 136 29 87 7 687 603 672 96 376 372 868 507 722 64 833 149 512 922 827 228 883 926 639 412 134 597 742 933 898 861 511 386 889 949 744 928 903 416 23 278 139 242 137 860 305 969 360 817 891 538 396 125 463 34 888 949 982 630 881 880 842 743 617 730 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint77 (line 3) vout=Monotonic_V(vin);

78   Fail
vin=[54 863 642 961 561 785 120 582 696 547 678 829 552 991 857 12 856 37 210 339 355 407 539 933 277 407 350 845 820 26 500 873 241 493 834 153 629 305 735 325 851 412 505 402 754 713 414 610 749 975 948 456 381 838 740 9 596 442 853 416 467 705 640 59 197 825 212 826 129 298 502 979 61 6 733 814 718 498 423 818 472 722 625 204 912 365 212 507 806 416 274 624 120 914 683 669 90 246 846 219 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint78 (line 3) vout=Monotonic_V(vin);

79   Fail
vin=[557 254 725 829 188 813 242 916 622 929 610 843 30 902 765 935 195 783 826 945 806 126 449 282 661 99 263 755 852 131 479 761 384 203 589 924 367 182 191 989 110 800 183 140 53 947 74 600 81 899 544 239 377 344 520 37 442 782 792 646 913 622 406 648 825 994 571 191 176 761 531 637 913 714 776 965 12 201 916 93 452 459 331 828 802 850 864 596 983 7 241 895 629 998 543 805 991 465 347 518 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint79 (line 3) vout=Monotonic_V(vin);

80   Fail
vin=[382 165 739 167 38 451 342 38 166 455 245 754 118 285 706 466 81 767 408 279 675 398 220 142 598 521 210 991 413 174 676 794 690 767 312 79 217 653 116 382 459 360 487 928 997 193 745 429 311 505 59 985 254 279 478 852 799 687 842 563 212 869 708 901 635 19 980 851 24 447 584 834 159 71 762 155 263 858 935 925 362 994 909 616 272 386 819 422 424 660 984 636 880 691 888 515 61 219 717 84 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint80 (line 3) vout=Monotonic_V(vin);

81   Fail
vin=[91 411 591 488 445 865 258 361 598 428 574 13 326 713 417 379 879 30 193 142 84 13 910 335 890 655 530 356 249 169 130 691 579 72 530 376 288 788 736 886 567 309 250 892 373 666 623 251 47 815 744 131 180 654 817 69 660 347 425 908 867 906 950 797 977 479 524 617 266 260 502 832 920 751 76 293 769 698 895 815 864 639 297 43 644 114 112 303 812 536 562 30 793 511 826 121 341 350 737 607 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint81 (line 3) vout=Monotonic_V(vin);

82   Fail
vin=[773 485 819 749 358 729 307 911 311 821 26 680 127 222 98 22 843 654 513 503 779 701 823 427 972 585 806 165 264 229 331 36 65 149 136 422 230 443 685 892 615 710 571 741 284 668 763 126 322 627 980 100 327 802 878 650 738 683 167 2 911 497 389 327 645 525 749 226 967 433 117 581 494 687 674 129 707 436 606 380 62 586 831 740 387 709 390 477 743 556 478 6 52 866 332 48 390 80 274 708 ]; vexp=[84 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint82 (line 3) vout=Monotonic_V(vin);

83   Fail
vin=[840 811 793 629 947 995 457 205 236 199 384 941 486 279 76 810 896 157 100 909 377 71 931 209 327 2 461 474 71 795 747 911 957 892 539 903 886 347 108 474 898 491 766 383 769 842 192 16 350 292 925 727 714 207 935 40 560 395 865 630 542 612 892 498 503 783 753 740 481 860 213 378 702 979 112 822 172 304 838 521 947 114 599 12 672 886 403 231 280 268 212 173 879 456 671 733 238 423 824 70 ]; vexp=[86 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint83 (line 3) vout=Monotonic_V(vin);

84   Fail
vin=[666 301 270 824 723 31 330 985 240 264 909 602 257 169 217 880 554 35 653 329 46 988 964 925 30 204 791 91 422 508 526 439 808 795 262 530 177 943 866 417 207 126 370 815 294 586 695 199 972 347 527 369 687 843 645 716 46 436 806 467 295 684 906 102 478 519 983 7 462 200 775 668 677 144 834 970 81 528 168 404 227 46 772 913 888 768 628 933 555 786 752 849 469 657 302 298 527 636 304 988 ]; vexp=[81 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint84 (line 3) vout=Monotonic_V(vin);

85   Fail
vin=[140 221 767 853 559 614 357 547 107 629 774 71 944 277 33 795 93 277 858 843 571 984 702 31 470 249 203 458 919 943 227 410 515 345 263 73 958 619 971 64 599 744 135 895 20 519 689 464 795 546 306 365 882 359 748 351 960 302 161 230 596 739 639 110 83 901 534 392 872 504 456 470 599 942 716 618 460 404 433 606 302 738 971 183 448 70 885 407 371 397 636 318 487 627 427 569 879 960 313 750 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint85 (line 3) vout=Monotonic_V(vin);

86   Fail
vin=[895 347 549 955 352 281 120 421 130 543 238 601 616 863 156 527 579 719 386 384 135 11 359 606 276 393 626 366 638 471 584 884 817 484 190 168 765 310 940 246 204 178 847 819 392 354 698 970 73 435 705 559 797 63 516 73 456 142 790 445 612 725 329 429 208 518 948 972 827 888 570 382 417 768 201 808 121 250 129 193 36 833 103 832 895 619 904 350 760 45 147 371 769 475 799 977 344 747 300 523 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint86 (line 3) vout=Monotonic_V(vin);

87   Fail
vin=[212 715 903 316 622 690 654 758 156 811 375 555 755 246 21 376 361 213 692 258 285 289 496 721 666 777 858 559 189 830 573 752 896 827 67 517 516 720 274 672 883 648 578 637 893 950 364 254 514 56 511 799 696 358 871 714 134 80 272 674 909 196 425 804 22 844 320 538 915 946 561 797 593 490 786 838 439 149 443 952 556 305 102 252 662 972 965 147 51 588 173 959 783 949 114 156 792 434 693 707 ]; vexp=[82 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint87 (line 3) vout=Monotonic_V(vin);

88   Fail
vin=[1 2 3 4 5 7 8 9 10 12 13 14 15 16 17 19 20 21 24 25 26 27 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 49 52 53 54 55 58 59 60 61 62 63 64 65 66 67 69 70 72 74 75 76 77 79 80 81 82 83 84 85 87 89 90 93 95 96 97 98 100 101 102 104 105 108 109 110 112 115 117 116 118 119 120 121 122 123 124 125 126 128 132 133 134 135 136 137 139 142 143 145 146 147 148 149 150 151 153 154 155 156 159 157 160 161 162 163 164 165 167 168 170 171 174 177 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 196 197 198 199 201 202 203 204 205 206 207 208 212 213 214 216 217 219 220 221 223 224 225 226 227 228 229 230 231 232 233 234 235 237 238 239 241 242 245 246 248 249 250 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 270 271 272 275 278 279 280 282 283 284 286 287 288 289 291 292 293 295 296 297 299 300 301 302 303 304 305 307 308 310 312 313 314 315 317 319 320 322 323 324 325 327 328 330 329 331 332 333 334 335 336 337 338 339 340 341 342 343 344 346 347 348 349 350 351 352 354 355 357 358 359 360 361 362 363 364 365 367 368 369 370 373 374 375 378 379 383 384 386 387 388 389 390 392 394 396 398 399 400 401 403 404 405 406 407 408 409 410 411 412 413 414 416 420 417 421 422 424 426 427 428 429 430 432 433 434 436 437 438 439 440 442 443 444 445 446 448 449 450 452 454 455 456 457 458 459 460 461 462 463 464 465 466 468 469 471 472 474 475 476 477 478 479 480 481 483 484 485 486 487 489 490 491 492 493 494 496 497 498 499 500 501 502 504 505 506 507 508 509 510 511 514 515 517 518 519 520 521 522 526 527 529 530 531 532 533 534 535 536 537 538 539 540 541 543 545 546 547 548 549 550 552 553 554 555 557 558 559 560 561 565 566 567 568 569 570 571 574 575 576 577 579 580 581 582 583 586 587 588 589 590 591 593 594 595 596 597 599 601 602 603 604 605 606 607 608 609 610 612 614 613 615 616 617 618 619 620 621 623 624 625 626 627 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 647 648 649 651 654 652 655 656 657 659 662 663 664 665 666 667 668 670 671 672 673 674 675 676 677 678 679 680 681 684 685 687 688 689 690 691 693 694 696 697 700 702 703 704 705 706 707 708 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 745 746 748 749 750 751 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 770 771 773 774 775 776 777 778 779 780 781 783 784 785 786 787 788 790 791 792 793 794 796 797 798 799 800 801 802 803 804 805 807 806 809 811 812 813 814 815 816 818 819 820 822 823 824 825 826 827 828 829 830 831 832 833 834 836 839 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 863 864 865 866 867 868 869 870 871 872 873 874 876 877 878 881 882 883 886 888 889 891 892 893 895 896 897 898 899 900 901 903 904 905 906 907 908 909 910 911 912 914 915 916 919 920 921 922 923 924 925 926 927 928 929 930 931 933 934 935 937 938 939 940 943 944 946 947 948 949 950 951 954 955 958 959 960 962 964 963 965 966 967 968 969 970 971 973 974 976 977 978 979 980 981 982 983 985 987 989 990 991 992 993 994 995 996 997 998 999 1000 ]; vexp=[8 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint88 (line 3) vout=Monotonic_V(vin);

89   Fail
vin=[232 362 351 89 9 383 813 119 501 620 74 832 51 891 276 399 788 50 830 441 407 247 327 179 95 747 700 116 567 509 596 798 870 946 238 230 680 51 348 533 22 421 364 72 312 639 470 451 688 652 891 446 898 570 624 992 316 675 107 882 183 54 680 405 999 269 634 31 671 982 563 692 754 926 764 417 564 585 220 251 236 462 48 486 31 671 477 346 697 936 228 231 989 259 635 340 879 621 370 550 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint89 (line 3) vout=Monotonic_V(vin);

90   Fail
vin=[743 518 755 828 879 541 927 408 37 37 390 21 445 937 948 884 395 704 54 14 367 979 496 739 378 827 675 921 263 707 410 6 224 164 185 454 56 111 214 93 500 603 465 944 891 765 179 286 468 233 651 186 211 146 925 940 972 951 212 587 657 622 944 232 137 128 686 545 591 899 989 442 853 805 385 744 569 563 381 389 147 31 926 357 528 202 296 851 153 860 437 809 481 732 41 969 860 78 513 802 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint90 (line 3) vout=Monotonic_V(vin);

91   Fail
vin=[86 217 935 102 796 608 72 794 977 758 392 828 341 411 808 33 109 545 905 883 454 614 180 210 450 416 977 332 247 832 107 332 400 41 786 196 1000 857 341 977 966 733 804 658 495 964 43 603 860 947 838 313 912 17 523 361 432 851 45 678 682 503 361 434 895 498 629 895 706 321 871 672 405 26 329 899 341 723 854 201 669 691 513 580 59 387 293 490 237 689 519 271 191 231 704 85 81 684 979 786 ]; vexp=[83 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint91 (line 3) vout=Monotonic_V(vin);

92   Fail
vin=[473 794 229 24 568 883 911 820 507 554 938 670 729 241 831 64 196 280 334 572 853 361 223 365 866 48 748 528 116 865 442 941 658 670 964 225 904 226 44 410 131 982 79 859 574 261 275 770 540 608 693 392 320 915 109 186 962 208 713 430 72 154 370 82 176 685 306 79 262 702 841 744 35 271 955 960 532 229 729 71 836 421 815 156 688 923 693 1 130 405 430 554 910 151 635 437 187 292 516 448 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp))

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint92 (line 3) vout=Monotonic_V(vin);

93   Fail
vin=[746 542 944 181 269 649 563 798 243 157 472 262 531 138 351 242 625 142 109 630 330 815 726 455 518 75 952 582 985 432 562 82 973 857 263 594 505 825 743 99 981 567 361 512 704 711 105 328 852 213 310 533 380 35 988 897 462 291 830 446 722 392 880 46 248 142 639 105 318 734 203 298 300 915 161 355 625 617 682 828 830 343 713 209 730 52 457 191 342 286 988 415 29 867 460 629 360 451 733 677 ]; vexp=[85 ]; vout=Monotonic_V(vin); assert(isequal(vout,vexp)) toc

Subscript indices must either be real positive integers or logicals. Error in Monotonic_V (line 6) Z = vertcat(Z, max(Z(wtemp))+1); Error in TestPoint93 (line 3) vout=Monotonic_V(vin);