两个矩阵相乘.要求i不变,j变.

问题描述:

两个矩阵相乘.要求i不变,j变.
a=[839 817 87 897 734 74 758 15 80.5
775 813 86 887 723 91 763 15 73.0
824 835 82 855 689 92 726 10 68.0
777 810 89 840 658 88 748 0 75.0
790 795 84 791 672 75 692 20 60.0
707 730 108 842 667 73 738 0 55.5
792 754 87 767 632 74 687 0 74.5
776 779 102 788 600 82 632 15 45.0
753 712 94 767 640 75 710 10 49.0
662 751 80 780 667 70 717 0 78.5
695 809 82 767 604 79 689 10 75.0
744 723 86 766 652 74 674 0 61.5
728 748 92 775 636 78 648 0 70.0
660 706 94 808 639 91 700 0 50.5
763 710 92 759 587 69 713 0 65.0
654 740 80 771 618 70 711 0 78.0
592 738 88 769 659 75 690 5 51.5
646 742 91 768 560 79 651 0 51.5
653 682 93 766 600 70 659 5 50.5
700 662 92 731 582 75 628 0 43.5
601 686 78 773 578 70 653 5 54.5
565 747 81 743 569 67 636 10 72.0
469 619 79 722 581 68 695 0 50.5
451 686 79 681 558 67 596 0 61.5
427 657 78 657 466 68 660 0 54.0
436 565 80 520 262 68 496 0 60.0
0 199 80 458 417 68 627 0 30.5];
b=[0.1541 0.1664 0.0606 0.1142 0.1251 0.0777 0.1235 0.0685 0.1098];

>> a*b'
ans =
574.0009
562.0091
559.6873
545.6075
532.7643
519.4726
518.2140
510.8299
507.4436
506.9541
509.9879
504.9531
504.0704
496.1589
501.9628
495.9373
486.6636
478.4851
474.9980
468.0522
464.4868
464.6509
431.8584
421.5775
405.9011
331.3394
228.4989
>>