Charge-density-wave switching behavior in an applied temperature gradient