Error in MATLAB R2021a: Example Not Found in Specified Path

when I put this line to open an example in the command section:
>> openExample('simscape/LithiumBatteryCellOneRCBranchEquivalentCircuitExample')
I am getting this message:
Error using findExample (line 22)
Example "LithiumBatteryCellOneRCBranchEquivalentCircuitExample" not found in "C:\Program
Files\MATLAB\R2021b\examples\simscape\examples.xml".
Error in openExample (line 30)
metadata = findExample(exampleId);

Answers (1)

The command you are using is for MATLAB R2023b and later versions. You can use the following command to open the "Lithium Battery Cell - One RC-Branch Equivalent Circuit" example in MATLAB R2021a:
ssc_lithium_cell_1RC
You can refer to the following MathWorks documentation for more information:

Categories

Asked:

on 28 Aug 2024

Answered:

on 28 Aug 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!