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

2 views (last 30 days)
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 Comment
dpb
dpb on 4 Aug 2019
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?

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!