menuN fix for older matlab versions