MATLAB: Can’t I find the battery block in the Simscape block library

SimscapeSimscape ElectricalSimscape Electronics

Why can't I find the battery block in the Simscape block library?
When searching through the MATLAB Documentation on Google, I find lots of Simscape battery blocks, but these do not show up in my Simulink library.

Best Answer

The Simscape battery blocks are part of Simscape Power Systems and Simscape Electronics products before R2018b and the Simscape Electrical product beginning in  R2018b. If you only have Simscape without these add-on products, you will not have dedicated battery blocks.

However, you can model a battery using Simscape Foundation library components. Here is a page showing a battery model built with Simscape Foundation library components.
https://www.mathworks.com/solutions/power-electronics-control/battery-models.html
Also, for reference, here are three different battery blocks found in R2018a.
Simscape Power Systems Battery
Simscape Electronics Battery
Simscape Power Systems Specialized Technology