Markets ended marginally higher on Tuesday amid volatility, taking a breather after the recent up move. The markets opened almost on flat note and hovered in a range throughout the trading session. The BSE Sensex ended at 36,674.52, up 187.24 points or 0.51%. The Nifty closed at 10,799.65, up 36 points or 0.33%.