It doesn't matter where I sleep so much as whether I'm tired or not.
It doesn't depend on where I sleep, it depends on whether I'm tired.
to matter = 大切なことになる。関係があることになる、問題になる、意味になる
It doesn't matter where I sleep.
寝る場所は関係ない。・寝る場所は問題にならない。
to depend on = 〜による
It depends on whether I'm tired.
疲れているかどうかによる。
It depends on the temperature of the room.
部屋の温度による。
Whether you can sleep well depends not on where you sleep, but on how tired you are.
Whether you can sleep well depends not on where you sleep, but on how tired you are.
「よく眠れるかどうかは、寝る場所ではなく疲れているかどうかによります。」
depend on は「〜にかかっている、〜による」という意味です。
例文:
Whether I can sleep well depends not on where I sleep, but on how tired I am.
「よく眠れるかどうかは寝る場所ではなく、自分がどれだけ疲れているかによります。」
お役に立てれば嬉しいです。