intermediate matlab work in progess
adding pics