extract binary highway map from OSM

hi friends,
i’m new to OSM so please be mercyful.

i have a project, and to complete it i need to extract a binary highway map of a certain region in switzerland.
i’m using matlab.

is there a easy way to extract highway data, or any road that a car can drive in?

thanks to the helpers!