Direction of the main beam of an antenna
But the results also give places of the nulls. So, how should I
distinguish themain beam between the all nulls (zeros) and sidelobe
peaks (local maximas)?

Use your favourite spreadsheet and produce a graph then you get all your information together. The formula is not hard to use in (say) excel.