Download data/Libraries/+batteryModule/getGroupedModelParam1Dvec.m from introvoyz041/Battery-Pack-Model-Simscape: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/datasets/introvoyz041/Battery-Pack-Model-Simscape/resolve/main/data/Libraries/%2BbatteryModule/getGroupedModelParam1Dvec.m
- Command line
-
hf download hf://datasets/introvoyz041/Battery-Pack-Model-Simscape/data/Libraries/+batteryModule/getGroupedModelParam1Dvec.m
-
curl -L -o getGroupedModelParam1Dvec.m https://huggingface.co/datasets/introvoyz041/Battery-Pack-Model-Simscape/resolve/main/data/Libraries/%2BbatteryModule/getGroupedModelParam1Dvec.m
654 Bytes
| function groupedVal = getGroupedModelParam1Dvec(param_val,cellIndex5Section,numCells5section) | |
| % Copyright 2020-2026 The MathWorks, Inc. | |
| tmpVar01=sum(param_val(1:cellIndex5Section(1)))/numCells5section(1); | |
| tmpVar02=sum(param_val(cellIndex5Section(1)+1:cellIndex5Section(2)))/numCells5section(2); | |
| tmpVar03=sum(param_val(cellIndex5Section(2)+1:cellIndex5Section(3)))/numCells5section(3); | |
| tmpVar04=sum(param_val(cellIndex5Section(3)+1:cellIndex5Section(4)))/numCells5section(4); | |
| tmpVar05=sum(param_val(cellIndex5Section(4)+1:cellIndex5Section(5)))/numCells5section(5); | |
| groupedVal=[tmpVar01,tmpVar02,tmpVar03,tmpVar04,tmpVar05]; | |
| end | |