you should use MATLAB help. you can search matrix on it. and after you study matlab help for matrix then go for "if and for " and after that you should learn matlab by doing projects. in project if something is that you don't understand just search it on matlab help. for example if you do not know howto do a 3d integration just search it on matlab help.