relation analysis matlab program