Cody

# Problem 44498. Please check the last row

Solution 3802098

Submitted on 23 Nov 2020 by Akrem Hadji
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   Pass
data=[... 1 3 6 7 9 3 5 6 9 1]; output_correct =[... 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5]; assert(isequal(check_ave(data),output_correct))

output = 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5

2   Pass
data=[... 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5]; output_correct = data; assert(isequal(check_ave(data),output_correct))

output = 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5

3   Pass
data=[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3]; output_correct = data; assert(isequal(check_ave(data),output_correct))

output = 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3

4   Pass
data=[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2]; output_correct =[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3]; assert(isequal(check_ave(data),output_correct))

output = 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3

5   Pass
data = [1:1000;999:-1:0]; output_correct =[data;repmat(500,1,1000)]; assert(isequal(check_ave(data),output_correct))

output = Columns 1 through 14 1 2 3 4 5 6 7 8 9 10 11 12 13 14 999 998 997 996 995 994 993 992 991 990 989 988 987 986 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 15 through 28 15 16 17 18 19 20 21 22 23 24 25 26 27 28 985 984 983 982 981 980 979 978 977 976 975 974 973 972 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 29 through 42 29 30 31 32 33 34 35 36 37 38 39 40 41 42 971 970 969 968 967 966 965 964 963 962 961 960 959 958 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 43 through 56 43 44 45 46 47 48 49 50 51 52 53 54 55 56 957 956 955 954 953 952 951 950 949 948 947 946 945 944 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 57 through 70 57 58 59 60 61 62 63 64 65 66 67 68 69 70 943 942 941 940 939 938 937 936 935 934 933 932 931 930 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 71 through 84 71 72 73 74 75 76 77 78 79 80 81 82 83 84 929 928 927 926 925 924 923 922 921 920 919 918 917 916 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 85 through 98 85 86 87 88 89 90 91 92 93 94 95 96 97 98 915 914 913 912 911 910 909 908 907 906 905 904 903 902 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 99 through 112 99 100 101 102 103 104 105 106 107 108 109 110 111 112 901 900 899 898 897 896 895 894 893 892 891 890 889 888 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 113 through 126 113 114 115 116 117 118 119 120 121 122 123 124 125 126 887 886 885 884 883 882 881 880 879 878 877 876 875 874 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 127 through 140 127 128 129 130 131 132 133 134 135 136 137 138 139 140 873 872 871 870 869 868 867 866 865 864 863 862 861 860 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 141 through 154 141 142 143 144 145 146 147 148 149 150 151 152 153 154 859 858 857 856 855 854 853 852 851 850 849 848 847 846 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 155 through 168 155 156 157 158 159 160 161 162 163 164 165 166 167 168 845 844 843 842 841 840 839 838 837 836 835 834 833 832 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 169 through 182 169 170 171 172 173 174 175 176 177 178 179 180 181 182 831 830 829 828 827 826 825 824 823 822 821 820 819 818 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 183 through 196 183 184 185 186 187 188 189 190 191 192 193 194 195 196 817 816 815 814 813 812 811 810 809 808 807 806 805 804 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 197 through 210 197 198 199 200 201 202 203 204 205 206 207 208 209 210 803 802 801 800 799 798 797 796 795 794 793 792 791 790 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 211 through 224 211 212 213 214 215 216 217 218 219 220 221 222 223 224 789 788 787 786 785 784 783 782 781 780 779 778 777 776 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 225 through 238 225 226 227 228 229 230 231 232 233 234 235 236 237 238 775 774 773 772 771 770 769 768 767 766 765 764 763 762 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 239 through 252 239 240 241 242 243 244 245 246 247 248 249 250 251 252 761 760 759 758 757 756 755 754 753 752 751 750 749 748 500 500 500 500 500 500 500 500 500 500 500 500 500 500 Columns 253 through 266 253 254 255 256 257 258 259 260 261 262 263 264 265 266 747 746 745 744 743 742 741 740 739 738 737 736 735 734 50...

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!