Extracting particular column

I have 2 matrix
A=[1 .5 .3 .6 98
2 .6 .3 .5 89
3 .5 .6 91
;
5 3 .6 87
;100 .8 .01 87]
B=[1.0000 5.0000 1.0000 0 92.5322
1.0000 6.0000 1.0000 0 94.9162
1.0000 2.0000 1.0000 0 93.9432
1.0000 4.0000 0 0 94.6523
1.0000 3.0000 1.0000 0 94.1512
11.0000 57.0000 1.0000 0 92.8581
11.0000 60.0000 1.0000 0 92.5076
11.0000 59.0000 1.0000 0 94.5065
11.0000 61.0000 0 0 94.9799
11.0000 58.0000 1.0000 0 90.053
]
now i need a matrix as
for example in B matrix the first row value is 1 ,so i need coeesponding valuse to be selected fron A matrix
1.0000 5.0000 1.0000 0 92.5322 1.0000 5.0000 1.0000 0 92.5322
i need for all values in B
and theb the second column mof B must also be done
as
5.0000 1.0000 0 92.5322 5 3 .6 87

답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 9일

0 개 추천

Your A matrix is syntactically invalid, and your example is impossible to follow.

카테고리

도움말 센터File Exchange에서 Fluid Dynamics에 대해 자세히 알아보기

태그

질문:

Pat
2011년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by