A=[ 1 0.3644 0.5204 0.4753 0.3593 0.432 0.5269 0.4445 0.4247 0.3145 0.4205 0.3445 0.4685 0.4173 0.2581 0.191 0.4707 0.3189 0.4475 0.471 0.3356 0.3512 0.4728 0.4323 0.5079 0.4811 0.4295 0.2974 0.2858 0.3527 0.3952 0.4307 0.3905 0.3567 0.3278 0.3538 0.3278 0.4025 0.3567 0.3628 0.3531 0.3857 0.3428 0.1867 0.4114 0.3934 0.3123 0.196 0.5572 0.317 0.1655 0.1755 0.3364 0.1164 0.2905 0.3644 1 0.3589 0.3605 0.4408 0.3098 0.3855 0.3702 0.2886 0.2986 0.3664 0.4047 0.4268 0.4027 0.2249 0.3669 0.4597 0.3814 0.4132 0.4174 0.3055 0.4068 0.4433 0.3661 0.4254 0.2122 0.1719 0.1402 0.1201 0.2045 0.2896 0.2841 0.2721 0.2719 0.2379 0.2293 0.2999 0.3471 0.3374 0.3376 0.3217 0.3619 0.3529 0.0978 0.2897 0.3916 0.1716 0.1053 0.4083 0.2518 0.2345 0.0885 0.2131 0.0753 0.2502 0.5204 0.3589 1 0.7052 0.5701 0.624 0.6761 0.7372 0.5914 0.5333 0.5873 0.5717 0.6606 0.6358 0.4792 0.4762 0.6875 0.5312 0.6631 0.6629 0.5716 0.5306 0.7032 0.561 0.7149 0.6108 0.5886 0.4554 0.4842 0.5146 0.536 0.6697 0.5731 0.5856 0.5863 0.5008 0.5339 0.5458 0.521 0.5244 0.5396 0.4947 0.5121 0.3251 0.5205 0.498 0.3917 0.3839 0.7064 0.5414 0.3896 0.197 0.5187 0.2384 0.5055 0.4753 0.3605 0.7052 1 0.4544 0.725 0.6951 0.8779 0.8381 0.4003 0.4949 0.4524 0.552 0.5107 0.3849 0.3309 0.5784 0.3797 0.5278 0.5465 0.3049 0.4469 0.6396 0.5008 0.5863 0.5928 0.6353 0.5652 0.5849 0.5894 0.6246 0.7129 0.7914 0.8255 0.7973 0.7342 0.6039 0.3836 0.4745 0.5727 0.4619 0.5189 0.4563 0.2809 0.4658 0.5254 0.4233 0.4124 0.5373 0.6272 0.4183 0.3734 0.5564 0.3456 0.5132 0.3593 0.4408 0.5701 0.4544 1 0.3191 0.6077 0.5199 0.333 0.4127 0.6569 0.6942 0.6902 0.6828 0.4831 0.4923 0.7307 0.5676 0.703 0.7054 0.6176 0.6506 0.6997 0.539 0.7083 0.3932 0.2222 0.1046 0.1929 0.2431 0.288 0.436 0.2588 0.3273 0.2826 0.249 0.5344 0.4301 0.4776 0.4598 0.4274 0.4681 0.4662 0.225 0.3413 0.4901 0.2604 0.1736 0.5434 0.3586 0.186 -0.0049 0.1961 0.1962 0.3062 0.432 0.3098 0.624 0.725 0.3191 1 0.5785 0.6893 0.7031 0.3454 0.3309 0.3051 0.3846 0.3341 0.3033 0.3981 0.4052 0.2558 0.3664 0.3794 0.3619 0.2849 0.47 0.3859 0.4542 0.7072 0.7782 0.6967 0.7419 0.7526 0.6233 0.7036 0.8358 0.7958 0.8075 0.811 0.5776 0.5742 0.6003 0.6009 0.6333 0.5222 0.5997 0.352 0.6185 0.5428 0.5386 0.6123 0.6665 0.7027 0.4672 0.3395 0.7645 0.3757 0.7323 0.5269 0.3855 0.6761 0.6951 0.6077 0.5785 1 0.7186 0.5872 0.4669 0.6322 0.6091 0.6853 0.6559 0.4821 0.4689 0.7337 0.5685 0.6584 0.7333 0.6054 0.5992 0.7282 0.5719 0.7324 0.5961 0.5205 0.4501 0.5112 0.4923 0.5204 0.5734 0.5474 0.5828 0.5943 0.5222 0.5387 0.5104 0.5402 0.5079 0.5348 0.5023 0.5429 0.3039 0.5031 0.5289 0.2782 0.3816 0.6301 0.4668 0.3238 0.181 0.4682 0.213 0.5038 0.4445 0.3702 0.7372 0.8779 0.5199 0.6893 0.7186 1 0.727 0.4168 0.5819 0.5263 0.6409 0.5969 0.4452 0.3619 0.6693 0.4638 0.6141 0.643 0.3842 0.5384 0.7174 0.6111 0.6581 0.5751 0.5846 0.5239 0.5387 0.5529 0.5926 0.6618 0.7096 0.7979 0.7282 0.6773 0.583 0.3893 0.4773 0.5631 0.4611 0.5182 0.4629 0.2728 0.4459 0.4973 0.3548 0.4021 0.5446 0.5777 0.3884 0.2571 0.4967 0.2894 0.4917 0.4247 0.2886 0.5914 0.8381 0.333 0.7031 0.5872 0.727 1 0.3353 0.3296 0.3209 0.3771 0.3315 0.2978 0.2992 0.3966 0.2502 0.3678 0.3735 0.2408 0.2961 0.4612 0.3815 0.4373 0.6049 0.6653 0.6166 0.624 0.6264 0.5781 0.7393 0.803 0.8139 0.8018 0.7556 0.5834 0.4398 0.4896 0.5951 0.507 0.5268 0.4913 0.2945 0.5215 0.5432 0.4726 0.5076 0.5591 0.6926 0.441 0.3909 0.6298 0.3851 0.5989 0.3145 0.2986 0.5333 0.4003 0.4127 0.3454 0.4669 0.4168 0.3353 1 0.5577 0.5305 0.6026 0.6127 0.4114 0.3631 0.6072 0.5816 0.5784 0.5888 0.4352 0.5581 0.5852 0.5239 0.5548 0.4596 0.3492 0.3056 0.3299 0.349 0.345 0.4385 0.2926 0.364 0.2909 0.3022 0.4994 0.4688 0.4834 0.4508 0.4745 0.4629 0.4719 0.2155 0.3765 0.4728 0.2627 0.2359 0.4935 0.4371 0.1424 -0.0601 0.3423 0.1296 0.3953 0.4205 0.3664 0.5873 0.4949 0.6569 0.3309 0.6322 0.5819 0.3296 0.5577 1 0.7794 0.9147 0.9202 0.593 0.5887 0.9248 0.8242 0.9087 0.8758 0.8709 0.8911 0.8784 0.7165 0.818 0.4031 0.2717 0.1702 0.2219 0.236 0.3402 0.4272 0.2539 0.3305 0.279 0.2793 0.542 0.4427 0.4635 0.4324 0.4292 0.4861 0.4539 0.2594 0.3398 0.5084 0.2226 0.1314 0.525 0.3462 0.0782 0.0031 0.2384 0.0589 0.307 0.3445 0.4047 0.5717 0.4524 0.6942 0.3051 0.6091 0.5263 0.3209 0.5305 0.7794 1 0.832 0.8215 0.5146 0.5579 0.8505 0.7757 0.8334 0.8345 0.7292 0.8151 0.7795 0.6834 0.7813 0.3759 0.2795 0.1961 0.256 0.2422 0.3235 0.4207 0.2449 0.279 0.2943 0.2502 0.5727 0.4578 0.4797 0.458 0.4454 0.478 0.472 0.2643 0.3765 0.4894 0.2145 0.18 0.555 0.4039 0.166 -0.0216 0.2212 0.0984 0.3183 0.4685 0.4268 0.6606 0.552 0.6902 0.3846 0.6853 0.6409 0.3771 0.6026 0.9147 0.832 1 0.957 0.6374 0.6244 0.971 0.8572 0.9558 0.9203 0.8699 0.9074 0.9033 0.7808 0.8798 0.4604 0.3386 0.2325 0.283 0.2873 0.3995 0.4829 0.3145 0.3971 0.3487 0.3211 0.5862 0.4877 0.5008 0.4757 0.4772 0.5206 0.4926 0.2799 0.3885 0.5405 0.2342 0.1715 0.5927 0.4171 0.1126 -0.0294 0.2794 0.0893 0.358 0.4173 0.4027 0.6358 0.5107 0.6828 0.3341 0.6559 0.5969 0.3315 0.6127 0.9202 0.8215 0.957 1 0.6779 0.6016 0.9672 0.8717 0.9599 0.9185 0.8581 0.9218 0.9031 0.7859 0.8714 0.4269 0.2972 0.1869 0.2343 0.2506 0.3631 0.4398 0.257 0.351 0.2966 0.2671 0.5516 0.4506 0.4655 0.4396 0.4287 0.4879 0.4498 0.2197 0.3313 0.5029 0.219 0.137 0.5593 0.3781 0.058 -0.0518 0.2326 0.0728 0.3096 0.2581 0.2249 0.4792 0.3849 0.4831 0.3033 0.4821 0.4452 0.2978 0.4114 0.593 0.5146 0.6374 0.6779 1 0.4008 0.6478 0.5869 0.6527 0.6061 0.5673 0.5957 0.6387 0.5132 0.6105 0.3613 0.2859 0.1783 0.246 0.2195 0.3153 0.3717 0.2456 0.2967 0.2782 0.2372 0.403 0.3591 0.378 0.3885 0.3645 0.3814 0.3809 0.2151 0.2811 0.385 0.1637 0.1972 0.422 0.33 0.0788 0.0002 0.2279 0.096 0.2701 0.191 0.3669 0.4762 0.3309 0.4923 0.3981 0.4689 0.3619 0.2992 0.3631 0.5887 0.5579 0.6244 0.6016 0.4008 1 0.6306 0.6332 0.62 0.5826 0.6388 0.6558 0.5934 0.5014 0.5491 0.4585 0.3641 0.3136 0.3766 0.3523 0.441 0.4292 0.3853 0.385 0.4368 0.3807 0.39 0.5477 0.4759 0.3267 0.5128 0.2841 0.5047 0.2077 0.4183 0.3266 0.2012 0.393 0.6072 0.3565 0.1271 0.0454 0.5066 0.1153 0.4994 0.4707 0.4597 0.6875 0.5784 0.7307 0.4052 0.7337 0.6693 0.3966 0.6072 0.9248 0.8505 0.971 0.9672 0.6478 0.6306 1 0.8597 0.9703 0.9525 0.867 0.9227 0.9448 0.805 0.9118 0.4837 0.3411 0.2367 0.2907 0.3062 0.4068 0.4874 0.3246 0.4126 0.3665 0.328 0.5977 0.4938 0.5162 0.49 0.4862 0.531 0.5083 0.2824 0.3954 0.5522 0.2633 0.1888 0.622 0.4169 0.1589 0.0009 0.2848 0.1138 0.3688 0.3189 0.3814 0.5312 0.3797 0.5676 0.2558 0.5685 0.4638 0.2502 0.5816 0.8242 0.7757 0.8572 0.8717 0.5869 0.6332 0.8597 1 0.8532 0.8008 0.7822 0.8866 0.7909 0.6867 0.7872 0.3651 0.2367 0.1661 0.2247 0.2311 0.2643 0.3117 0.2125 0.2693 0.2743 0.2397 0.4608 0.3696 0.3643 0.3411 0.3506 0.3609 0.3621 0.193 0.2604 0.3938 0.1764 0.1367 0.4917 0.3263 0.0758 -0.0331 0.2283 0.041 0.276 0.4475 0.4132 0.6631 0.5278 0.703 0.3664 0.6584 0.6141 0.3678 0.5784 0.9087 0.8334 0.9558 0.9599 0.6527 0.62 0.9703 0.8532 1 0.9196 0.8515 0.9107 0.9067 0.7903 0.8797 0.4553 0.3301 0.2167 0.27 0.2774 0.3785 0.466 0.2912 0.3669 0.3258 0.2999 0.5614 0.4764 0.4854 0.4582 0.4596 0.5023 0.4716 0.252 0.3725 0.5201 0.2439 0.1818 0.6041 0.4035 0.1578 -0.0174 0.2817 0.103 0.3523 0.471 0.4174 0.6629 0.5465 0.7054 0.3794 0.7333 0.643 0.3735 0.5888 0.8758 0.8345 0.9203 0.9185 0.6061 0.5826 0.9525 0.8008 0.9196 1 0.8257 0.8553 0.8968 0.7714 0.8756 0.4686 0.3159 0.2169 0.271 0.2931 0.3678 0.4543 0.3035 0.3933 0.3553 0.3036 0.5857 0.4834 0.5025 0.493 0.4711 0.5284 0.4967 0.272 0.3728 0.5471 0.2012 0.2085 0.5852 0.4025 0.2198 0.0143 0.2677 0.1345 0.3509 0.3356 0.3055 0.5716 0.3049 0.6176 0.3619 0.6054 0.3842 0.2408 0.4352 0.8709 0.7292 0.8699 0.8581 0.5673 0.6388 0.867 0.7822 0.8515 0.8257 1 0.8419 0.8294 0.6493 0.7696 0.448 0.3707 0.3001 0.3239 0.3509 0.4551 0.4296 0.3243 0.3536 0.3578 0.3253 0.3533 0.5491 0.5373 0.3693 0.5403 0.3919 0.5259 0.2839 0.4738 0.3986 0.2281 0.33 0.5807 0.3405 0.089 -0.0346 0.4246 0.0593 0.4494 0.3512 0.4068 0.5306 0.4469 0.6506 0.2849 0.5992 0.5384 0.2961 0.5581 0.8911 0.8151 0.9074 0.9218 0.5957 0.6558 0.9227 0.8866 0.9107 0.8553 0.8419 1 0.851 0.7611 0.8165 0.3856 0.2377 0.1793 0.2226 0.2096 0.3355 0.3725 0.2332 0.3116 0.2807 0.2451 0.4959 0.3829 0.3926 0.3509 0.3687 0.3865 0.3949 0.2091 0.281 0.4118 0.1814 0.1346 0.5221 0.3205 0.0501 -0.0305 0.234 0.0335 0.2819 0.4728 0.4433 0.7032 0.6396 0.6997 0.47 0.7282 0.7174 0.4612 0.5852 0.8784 0.7795 0.9033 0.9031 0.6387 0.5934 0.9448 0.7909 0.9067 0.8968 0.8294 0.851 1 0.7714 0.8879 0.527 0.4184 0.3083 0.3568 0.4165 0.479 0.5408 0.4062 0.4809 0.4504 0.4181 0.6197 0.548 0.5563 0.5522 0.5346 0.5747 0.5469 0.3284 0.4608 0.5938 0.2866 0.2352 0.6249 0.4677 0.2199 0.0201 0.352 0.1351 0.4238 0.4323 0.3661 0.561 0.5008 0.539 0.3859 0.5719 0.6111 0.3815 0.5239 0.7165 0.6834 0.7808 0.7859 0.5132 0.5014 0.805 0.6867 0.7903 0.7714 0.6493 0.7611 0.7714 1 0.7545 0.4898 0.3468 0.3244 0.3159 0.3253 0.3747 0.442 0.311 0.3837 0.3128 0.3441 0.517 0.4671 0.4366 0.4035 0.4249 0.4463 0.434 0.2925 0.3771 0.4515 0.2713 0.2305 0.597 0.4077 0.1482 0.0453 0.2811 0.1818 0.3771 0.5079 0.4254 0.7149 0.5863 0.7083 0.4542 0.7324 0.6581 0.4373 0.5548 0.818 0.7813 0.8798 0.8714 0.6105 0.5491 0.9118 0.7872 0.8797 0.8756 0.7696 0.8165 0.8879 0.7545 1 0.5016 0.3983 0.292 0.3279 0.3592 0.4327 0.5161 0.3813 0.4302 0.4041 0.3599 0.579 0.5147 0.5243 0.4962 0.5045 0.532 0.5173 0.3323 0.4338 0.5404 0.302 0.2265 0.6335 0.4526 0.1791 -0.0195 0.3241 0.1641 0.3954 0.4811 0.2122 0.6108 0.5928 0.3932 0.7072 0.5961 0.5751 0.6049 0.4596 0.4031 0.3759 0.4604 0.4269 0.3613 0.4585 0.4837 0.3651 0.4553 0.4686 0.448 0.3856 0.527 0.4898 0.5016 1 0.8733 0.7778 0.815 0.7982 0.651 0.6873 0.6803 0.6522 0.6767 0.6873 0.5976 0.6937 0.663 0.5844 0.6993 0.5044 0.656 0.3273 0.7019 0.5043 0.4261 0.6275 0.7886 0.7111 0.4109 0.3659 0.7542 0.391 0.7426 0.4295 0.1719 0.5886 0.6353 0.2222 0.7782 0.5205 0.5846 0.6653 0.3492 0.2717 0.2795 0.3386 0.2972 0.2859 0.3641 0.3411 0.2367 0.3301 0.3159 0.3707 0.2377 0.4184 0.3468 0.3983 0.8733 1 0.8784 0.8845 0.8998 0.7223 0.7845 0.7677 0.7098 0.7331 0.7441 0.5772 0.6967 0.675 0.6084 0.7227 0.5288 0.6658 0.3754 0.7598 0.5235 0.5255 0.6584 0.7443 0.7569 0.4096 0.3666 0.809 0.3928 0.7932 0.2974 0.1402 0.4554 0.5652 0.1046 0.6967 0.4501 0.5239 0.6166 0.3056 0.1702 0.1961 0.2325 0.1869 0.1783 0.3136 0.2367 0.1661 0.2167 0.2169 0.3001 0.1793 0.3083 0.3244 0.292 0.7778 0.8784 1 0.8424 0.8388 0.6634 0.7034 0.7407 0.6864 0.7141 0.7233 0.5044 0.6233 0.5817 0.4992 0.6475 0.4169 0.5909 0.3397 0.685 0.4236 0.4365 0.6399 0.6446 0.7031 0.4238 0.3035 0.7619 0.3311 0.7428 0.2858 0.1201 0.4842 0.5849 0.1929 0.7419 0.5112 0.5387 0.624 0.3299 0.2219 0.256 0.283 0.2343 0.246 0.3766 0.2907 0.2247 0.27 0.271 0.3239 0.2226 0.3568 0.3159 0.3279 0.815 0.8845 0.8424 1 0.8497 0.6296 0.7063 0.7618 0.6975 0.7368 0.7513 0.5424 0.6138 0.6166 0.547 0.6743 0.4381 0.6274 0.351 0.6758 0.4544 0.4399 0.6852 0.6541 0.715 0.4176 0.325 0.7871 0.3793 0.788 0.3527 0.2045 0.5146 0.5894 0.2431 0.7526 0.4923 0.5529 0.6264 0.349 0.236 0.2422 0.2873 0.2506 0.2195 0.3523 0.3062 0.2311 0.2774 0.2931 0.3509 0.2096 0.4165 0.3253 0.3592 0.7982 0.8998 0.8388 0.8497 1 0.6738 0.7344 0.7618 0.7094 0.7477 0.7663 0.5962 0.7051 0.6842 0.6227 0.7367 0.5269 0.681 0.3749 0.7304 0.547 0.499 0.6583 0.707 0.7281 0.3919 0.292 0.8037 0.3644 0.806 0.3952 0.2896 0.536 0.6246 0.288 0.6233 0.5204 0.5926 0.5781 0.345 0.3402 0.3235 0.3995 0.3631 0.3153 0.441 0.4068 0.2643 0.3785 0.3678 0.4551 0.3355 0.479 0.3747 0.4327 0.651 0.7223 0.6634 0.6296 0.6738 1 0.7282 0.6793 0.6527 0.6466 0.6326 0.4964 0.6301 0.6015 0.5187 0.6402 0.4295 0.5935 0.3046 0.6491 0.4586 0.342 0.4907 0.6506 0.5735 0.2839 0.2837 0.7184 0.2016 0.6561 0.4307 0.2841 0.6697 0.7129 0.436 0.7036 0.5734 0.6618 0.7393 0.4385 0.4272 0.4207 0.4829 0.4398 0.3717 0.4292 0.4874 0.3117 0.466 0.4543 0.4296 0.3725 0.5408 0.442 0.5161 0.6873 0.7845 0.7034 0.7063 0.7344 0.7282 1 0.7736 0.7324 0.7241 0.7011 0.6378 0.6715 0.6909 0.6318 0.7186 0.5697 0.6791 0.39 0.7282 0.5798 0.5007 0.5874 0.7075 0.7311 0.4153 0.4361 0.7333 0.4024 0.746 0.3905 0.2721 0.5731 0.7914 0.2588 0.8358 0.5474 0.7096 0.803 0.2926 0.2539 0.2449 0.3145 0.257 0.2456 0.3853 0.3246 0.2125 0.2912 0.3035 0.3243 0.2332 0.4062 0.311 0.3813 0.6803 0.7677 0.7407 0.7618 0.7618 0.6793 0.7736 1 0.8857 0.9008 0.8647 0.5093 0.5545 0.5738 0.5398 0.6287 0.4634 0.5872 0.354 0.6185 0.4996 0.4965 0.6331 0.6597 0.6925 0.4769 0.3657 0.8253 0.3482 0.769 0.3567 0.2719 0.5856 0.8255 0.3273 0.7958 0.5828 0.7979 0.8139 0.364 0.3305 0.279 0.3971 0.351 0.2967 0.385 0.4126 0.2693 0.3669 0.3933 0.3536 0.3116 0.4809 0.3837 0.4302 0.6522 0.7098 0.6864 0.6975 0.7094 0.6527 0.7324 0.8857 1 0.8719 0.7956 0.5724 0.5346 0.5854 0.6103 0.6179 0.5356 0.5945 0.344 0.595 0.5664 0.4703 0.5628 0.6259 0.6747 0.4453 0.2519 0.7397 0.3595 0.7073 0.3278 0.2379 0.5863 0.7973 0.2826 0.8075 0.5943 0.7282 0.8018 0.2909 0.279 0.2943 0.3487 0.2966 0.2782 0.4368 0.3665 0.2743 0.3258 0.3553 0.3578 0.2807 0.4504 0.3128 0.4041 0.6767 0.7331 0.7141 0.7368 0.7477 0.6466 0.7241 0.9008 0.8719 1 0.842 0.5124 0.531 0.5407 0.526 0.5972 0.4148 0.5496 0.3039 0.5649 0.4574 0.4342 0.649 0.6384 0.6549 0.4354 0.2711 0.7892 0.3163 0.715 0.3538 0.2293 0.5008 0.7342 0.249 0.811 0.5222 0.6773 0.7556 0.3022 0.2793 0.2502 0.3211 0.2671 0.2372 0.3807 0.328 0.2397 0.2999 0.3036 0.3253 0.2451 0.4181 0.3441 0.3599 0.6873 0.7441 0.7233 0.7513 0.7663 0.6326 0.7011 0.8647 0.7956 0.842 1 0.5613 0.5862 0.5838 0.5815 0.6418 0.5036 0.608 0.3443 0.6188 0.5259 0.4722 0.6226 0.6508 0.6887 0.4135 0.3774 0.7867 0.3526 0.7714 0.3278 0.2999 0.5339 0.6039 0.5344 0.5776 0.5387 0.583 0.5834 0.4994 0.542 0.5727 0.5862 0.5516 0.403 0.39 0.5977 0.4608 0.5614 0.5857 0.3533 0.4959 0.6197 0.517 0.579 0.5976 0.5772 0.5044 0.5424 0.5962 0.4964 0.6378 0.5093 0.5724 0.5124 0.5613 1 0.8313 0.8382 0.8175 0.8253 0.7913 0.8285 0.5046 0.7182 0.7988 0.5631 0.5174 0.5976 0.7946 0.4038 0.2841 0.4773 0.4717 0.6877 0.4025 0.3471 0.5458 0.3836 0.4301 0.5742 0.5104 0.3893 0.4398 0.4688 0.4427 0.4578 0.4877 0.4506 0.3591 0.5477 0.4938 0.3696 0.4764 0.4834 0.5491 0.3829 0.548 0.4671 0.5147 0.6937 0.6967 0.6233 0.6138 0.7051 0.6301 0.6715 0.5545 0.5346 0.531 0.5862 0.8313 1 0.9063 0.8896 0.9448 0.883 0.9144 0.5418 0.8695 0.8739 0.6662 0.6699 0.7574 0.8974 0.4637 0.3228 0.7253 0.4469 0.8314 0.3567 0.3374 0.521 0.4745 0.4776 0.6003 0.5402 0.4773 0.4896 0.4834 0.4635 0.4797 0.5008 0.4655 0.378 0.4759 0.5162 0.3643 0.4854 0.5025 0.5373 0.3926 0.5563 0.4366 0.5243 0.663 0.675 0.5817 0.6166 0.6842 0.6015 0.6909 0.5738 0.5854 0.5407 0.5838 0.8382 0.9063 1 0.9121 0.9709 0.9236 0.9683 0.5908 0.88 0.9252 0.6738 0.6327 0.6895 0.8171 0.4628 0.3569 0.6603 0.447 0.8185 0.3628 0.3376 0.5244 0.5727 0.4598 0.6009 0.5079 0.5631 0.5951 0.4508 0.4324 0.458 0.4757 0.4396 0.3885 0.3267 0.49 0.3411 0.4582 0.493 0.3693 0.3509 0.5522 0.4035 0.4962 0.5844 0.6084 0.4992 0.547 0.6227 0.5187 0.6318 0.5398 0.6103 0.526 0.5815 0.8175 0.8896 0.9121 1 0.9115 0.9324 0.9197 0.6008 0.8085 0.9219 0.6236 0.517 0.5922 0.8197 0.4199 0.2873 0.5342 0.4201 0.7399 0.3531 0.3217 0.5396 0.4619 0.4274 0.6333 0.5348 0.4611 0.507 0.4745 0.4292 0.4454 0.4772 0.4287 0.3645 0.5128 0.4862 0.3506 0.4596 0.4711 0.5403 0.3687 0.5346 0.4249 0.5045 0.6993 0.7227 0.6475 0.6743 0.7367 0.6402 0.7186 0.6287 0.6179 0.5972 0.6418 0.8253 0.9448 0.9709 0.9115 1 0.9015 0.977 0.6093 0.9035 0.9104 0.7007 0.6974 0.7326 0.8582 0.5013 0.3293 0.744 0.4536 0.8803 0.3857 0.3619 0.4947 0.5189 0.4681 0.5222 0.5023 0.5182 0.5268 0.4629 0.4861 0.478 0.5206 0.4879 0.3814 0.2841 0.531 0.3609 0.5023 0.5284 0.3919 0.3865 0.5747 0.4463 0.532 0.5044 0.5288 0.4169 0.4381 0.5269 0.4295 0.5697 0.4634 0.5356 0.4148 0.5036 0.7913 0.883 0.9236 0.9324 0.9015 1 0.927 0.5903 0.8094 0.9697 0.6382 0.4344 0.5268 0.7651 0.4502 0.2921 0.419 0.3726 0.6704 0.3428 0.3529 0.5121 0.4563 0.4662 0.5997 0.5429 0.4629 0.4913 0.4719 0.4539 0.472 0.4926 0.4498 0.3809 0.5047 0.5083 0.3621 0.4716 0.4967 0.5259 0.3949 0.5469 0.434 0.5173 0.656 0.6658 0.5909 0.6274 0.681 0.5935 0.6791 0.5872 0.5945 0.5496 0.608 0.8285 0.9144 0.9683 0.9197 0.977 0.927 1 0.6028 0.8866 0.9334 0.6804 0.6666 0.7012 0.815 0.5013 0.376 0.6761 0.451 0.852 0.1867 0.0978 0.3251 0.2809 0.225 0.352 0.3039 0.2728 0.2945 0.2155 0.2594 0.2643 0.2799 0.2197 0.2151 0.2077 0.2824 0.193 0.252 0.272 0.2839 0.2091 0.3284 0.2925 0.3323 0.3273 0.3754 0.3397 0.351 0.3749 0.3046 0.39 0.354 0.344 0.3039 0.3443 0.5046 0.5418 0.5908 0.6008 0.6093 0.5903 0.6028 1 0.5334 0.5899 0.4834 0.3339 0.3073 0.5142 0.3242 0.1993 0.3158 0.2666 0.4877 0.4114 0.2897 0.5205 0.4658 0.3413 0.6185 0.5031 0.4459 0.5215 0.3765 0.3398 0.3765 0.3885 0.3313 0.2811 0.4183 0.3954 0.2604 0.3725 0.3728 0.4738 0.281 0.4608 0.3771 0.4338 0.7019 0.7598 0.685 0.6758 0.7304 0.6491 0.7282 0.6185 0.595 0.5649 0.6188 0.7182 0.8695 0.88 0.8085 0.9035 0.8094 0.8866 0.5334 1 0.8019 0.6969 0.6978 0.7015 0.8134 0.5378 0.4467 0.7153 0.5065 0.8294 0.3934 0.3916 0.498 0.5254 0.4901 0.5428 0.5289 0.4973 0.5432 0.4728 0.5084 0.4894 0.5405 0.5029 0.385 0.3266 0.5522 0.3938 0.5201 0.5471 0.3986 0.4118 0.5938 0.4515 0.5404 0.5043 0.5235 0.4236 0.4544 0.547 0.4586 0.5798 0.4996 0.5664 0.4574 0.5259 0.7988 0.8739 0.9252 0.9219 0.9104 0.9697 0.9334 0.5899 0.8019 1 0.6374 0.4439 0.5303 0.6976 0.4868 0.3101 0.4481 0.3625 0.681 0.3123 0.1716 0.3917 0.4233 0.2604 0.5386 0.2782 0.3548 0.4726 0.2627 0.2226 0.2145 0.2342 0.219 0.1637 0.2012 0.2633 0.1764 0.2439 0.2012 0.2281 0.1814 0.2866 0.2713 0.302 0.4261 0.5255 0.4365 0.4399 0.499 0.342 0.5007 0.4965 0.4703 0.4342 0.4722 0.5631 0.6662 0.6738 0.6236 0.7007 0.6382 0.6804 0.4834 0.6969 0.6374 1 0.4959 0.4758 0.5847 0.3809 0.1866 0.4647 0.4248 0.5914 0.196 0.1053 0.3839 0.4124 0.1736 0.6123 0.3816 0.4021 0.5076 0.2359 0.1314 0.18 0.1715 0.137 0.1972 0.393 0.1888 0.1367 0.1818 0.2085 0.33 0.1346 0.2352 0.2305 0.2265 0.6275 0.6584 0.6399 0.6852 0.6583 0.4907 0.5874 0.6331 0.5628 0.649 0.6226 0.5174 0.6699 0.6327 0.517 0.6974 0.4344 0.6666 0.3339 0.6978 0.4439 0.4959 1 0.698 0.6841 0.7376 0.6311 0.7851 0.6813 0.8086 0.5572 0.4083 0.7064 0.5373 0.5434 0.6665 0.6301 0.5446 0.5591 0.4935 0.525 0.555 0.5927 0.5593 0.422 0.6072 0.622 0.4917 0.6041 0.5852 0.5807 0.5221 0.6249 0.597 0.6335 0.7886 0.7443 0.6446 0.6541 0.707 0.6506 0.7075 0.6597 0.6259 0.6384 0.6508 0.5976 0.7574 0.6895 0.5922 0.7326 0.5268 0.7012 0.3073 0.7015 0.5303 0.4758 0.698 1 0.7153 0.4836 0.4554 0.815 0.4637 0.7781 0.317 0.2518 0.5414 0.6272 0.3586 0.7027 0.4668 0.5777 0.6926 0.4371 0.3462 0.4039 0.4171 0.3781 0.33 0.3565 0.4169 0.3263 0.4035 0.4025 0.3405 0.3205 0.4677 0.4077 0.4526 0.7111 0.7569 0.7031 0.715 0.7281 0.5735 0.7311 0.6925 0.6747 0.6549 0.6887 0.7946 0.8974 0.8171 0.8197 0.8582 0.7651 0.815 0.5142 0.8134 0.6976 0.5847 0.6841 0.7153 1 0.4229 0.3624 0.7191 0.4996 0.8306 0.1655 0.2345 0.3896 0.4183 0.186 0.4672 0.3238 0.3884 0.441 0.1424 0.0782 0.166 0.1126 0.058 0.0788 0.1271 0.1589 0.0758 0.1578 0.2198 0.089 0.0501 0.2199 0.1482 0.1791 0.4109 0.4096 0.4238 0.4176 0.3919 0.2839 0.4153 0.4769 0.4453 0.4354 0.4135 0.4038 0.4637 0.4628 0.4199 0.5013 0.4502 0.5013 0.3242 0.5378 0.4868 0.3809 0.7376 0.4836 0.4229 1 0.5547 0.5206 0.6953 0.5339 0.1755 0.0885 0.197 0.3734 -0.0049 0.3395 0.181 0.2571 0.3909 -0.0601 0.0031 -0.0216 -0.0294 -0.0518 0.0002 0.0454 0.0009 -0.0331 -0.0174 0.0143 -0.0346 -0.0305 0.0201 0.0453 -0.0195 0.3659 0.3666 0.3035 0.325 0.292 0.2837 0.4361 0.3657 0.2519 0.2711 0.3774 0.2841 0.3228 0.3569 0.2873 0.3293 0.2921 0.376 0.1993 0.4467 0.3101 0.1866 0.6311 0.4554 0.3624 0.5547 1 0.391 0.7463 0.4376 0.3364 0.2131 0.5187 0.5564 0.1961 0.7645 0.4682 0.4967 0.6298 0.3423 0.2384 0.2212 0.2794 0.2326 0.2279 0.5066 0.2848 0.2283 0.2817 0.2677 0.4246 0.234 0.352 0.2811 0.3241 0.7542 0.809 0.7619 0.7871 0.8037 0.7184 0.7333 0.8253 0.7397 0.7892 0.7867 0.4773 0.7253 0.6603 0.5342 0.744 0.419 0.6761 0.3158 0.7153 0.4481 0.4647 0.7851 0.815 0.7191 0.5206 0.391 1 0.3993 0.8695 0.1164 0.0753 0.2384 0.3456 0.1962 0.3757 0.213 0.2894 0.3851 0.1296 0.0589 0.0984 0.0893 0.0728 0.096 0.1153 0.1138 0.041 0.103 0.1345 0.0593 0.0335 0.1351 0.1818 0.1641 0.391 0.3928 0.3311 0.3793 0.3644 0.2016 0.4024 0.3482 0.3595 0.3163 0.3526 0.4717 0.4469 0.447 0.4201 0.4536 0.3726 0.451 0.2666 0.5065 0.3625 0.4248 0.6813 0.4637 0.4996 0.6953 0.7463 0.3993 1 0.4974 0.2905 0.2502 0.5055 0.5132 0.3062 0.7323 0.5038 0.4917 0.5989 0.3953 0.307 0.3183 0.358 0.3096 0.2701 0.4994 0.3688 0.276 0.3523 0.3509 0.4494 0.2819 0.4238 0.3771 0.3954 0.7426 0.7932 0.7428 0.788 0.806 0.6561 0.746 0.769 0.7073 0.715 0.7714 0.6877 0.8314 0.8185 0.7399 0.8803 0.6704 0.852 0.4877 0.8294 0.681 0.5914 0.8086 0.7781 0.8306 0.5339 0.4376 0.8695 0.4974 1]; mat = A; %# A n-by-n matrix of random values from 0 to 1 imagesc(mat); %# Create a colored plot of the matrix values colormap(flipud(gray)); %# Change the colormap to gray (so higher values are %# black and lower values are white) textStrings = num2str(mat(:),'%0.2f'); %# Create strings from the matrix values % textStrings = strtrim(cellstr(textStrings)); %# Remove any space padding % [x,y] = meshgrid(1:55); %# Create x and y coordinates for the strings % hStrings = text(x(:),y(:),textStrings(:),... %# Plot the strings % 'HorizontalAlignment','center'); % midValue = mean(get(gca,'CLim')); %# Get the middle value of the color range set(gca,'YTick',1:55,... %# Change the axes tick marks 'YTickLabel',{'Canada','United States','Australia','Hong Kong','Japan',... 'South Korea','New Zealand','Singapore','Taiwan','Austria','Belgium',... 'Denmark','Finland','France','Germany','Greece','Ireland','Italy','Netherlands',... 'Norway','Portugal','Spain','Sweden','Switzerland','United Kingdom','Argentina',... 'Brazil','Chile','Colombia','Mexico','China','India','Indonesia','Malaysia','Philippines',... 'Thailand','Bulgaria','Croatia','Czech Republic','Estonia','Hungary','Lithuania','Poland',... 'Romania','Russia','Slovenia','Ukraine','Egypt','Israel','Kazakhstan','Nigeria','Qatar','South Africa','Tunisia','Turkey'},... %# and tick labels 'XTick',[mean([1 2]) mean([3:9]) mean([10:25]) mean([26:30]) mean([31:36]) mean([37:47]) mean([48:55])],... 'XTickLabel',{'North America','Developed Asia','Western Europe','Latin America','Emerging Asia','Eastern Europe','MEA'}); % [x,y] = meshgrid(1:55); %# Create x and y coordinates for the strings % % hStrings = text(x(:),y(:),textStrings(:),... %# Plot the strings % % 'HorizontalAlignment','center'); % midValue = mean(get(gca,'CLim')); %# Get the middle value of the color range % textColors = repmat(mat(:) > midValue,1,3); %# Choose white or black for the % %# text color of the strings so % %# they can be easily seen over % %# the background color % set(hStrings,{'Color'},num2cell(textColors,2)); %# Change the text colors % grid on set(gca, 'Ticklength', [0 0]) hold on x=[0 [2 9 25 30 36 47 55 60]+0.5]; plot(x,meshgrid(x,x),'k') plot(meshgrid(x,x),x,'k') x1=[0 [1:55]+0.5]; plot(x1,meshgrid(x1,x1),'k','LineWidth',0.3,'Color',[96 96 96]/255) plot(meshgrid(x1,x1),x1,'k','LineWidth',0.3,'Color',[96 96 96]/255) colorbar