Hi I understand you want to create custom resistor using simscape. You can do it through following steps.
- Simulink To PS Converter To Convert Simulink Signal to Current Signal.
- Add a Solver Configuration and design your circuit.
- PS To Simulink Converter To Convert Current to Simulink Signal.
Here is a sample design.
I have attached simulink model for your reference.