Both are conveniently connected to central Tokyo by express trains shown on the map below. Below are the some sample itineraries for getting to these locations.
The blue line is getting to the start via Shinjuku Station to Matsumoto Station.
The orange line is getting from the end via Takasaki Station to Tokyo Station.
Note: Google Maps has extremely accurate train scheduling and is able to work in nearly any language, so we highly recommend using it to find trains while in Japan.
Getting to the Start at Matsumoto Station
The best way from Tokyo is to take the Chuo Express Train that leaves directly from Shinjuku Station. This train runs roughly every hour and has assigned seats as well as toilets on board.
Flying in and Transiting Directly to Matsumoto Station
If you are flying into Narita Airport, you will take the Narita Express Train to Shinjuku Station. Then, follow the above and take the Chuo Express Train to Matsumoto Station.
For flights into Haneda Airport you will want to transit from the airport to Shinjuku Station in Tokyo. Then take the Chuo Express Train to Matsumoto Station, also 3.5hrs total transit time.
Getting Back from the End at Takasaki Station
Takasaki Station is a Shinkansen bullet train station and has direct trains back to Tokyo that depart every 5-10min. You can get what is called a “non-reserved” ticket which allows you to hop on a non-reserved car on the train. These cars are first come first serve for seats and are extremely convenient for this short 45min ride.