Far too confusingly stated to get any answer that will make any more sense than your question.
Break down any problem that is too complicated to solve for you into simple sub-problems. Solve each one in turn.
Here, that first means figuring out how to extract X and Y from rollno.
Next, you need to learn how to perform bilinear interpolation, since It seems clear you don't understand that. Or learn to use interp2. Or perhaps you really don't want to use bilinear interpolation, you just think you do. We don't know what is the real issue here.
