The simplest way is to couple the two sources as in this example in Simscape Electrical:
If you are looking to represent power transmission elements and systems such as springs, dampers, pulleys, and drives then look at Simscape Drivelines:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!