How to fill 3 in a column of matrix so that each column has first =3 and last =3

2 次查看(过去 30 天)
question2matlab.png
In Matrix M, My aim is that each column should have starting 3 in any row and final 3 at any row. i am facing problem with column 2 and column 5.
In first colum, have starting 3 ie.(1,2) and last 3 i e(1,5).
in 2nd column at (2,2) i.e yellow i want to fill 3. so it will help me to have first 3 ie (2,2) and last 3 ie.(5,2) in 2nd column.
similarly 3rd column is also ok
In column 5 ie. (3,5), i need to fill 3 at yellow place.
6th column is also ok having first 3 and last 3
Your help and guidance will be highly apprecated.
  1 个评论
dpb
dpb 2019-8-4
M(2,2)=3;
M(3,5)=3;
Also, just filling 3,5 for 5th column leaves only one 3 in the column, not two unless the 4 is a typo or there's some other reason one 3 counts as both start and end...
Somehow I think there must be more to the problem...how is it to be determined it is the 2nd and 3rd rows that need filling instead of any other row(s) in the specific column?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by