Skip to content

Commit

Permalink
added test for json data example in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Jan 18, 2024
1 parent 47a7601 commit 816dc38
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Documentation/scripts/jsonfiles/Example/testExample.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
jsonstruct = parseBattmoJson('simulation.json');

output = runBatteryJson(jsonstruct);

%% plotting

t = output.time;
E = output.E;

figure
plot(t/hour, E)
xlabel('Time / h')
xlabel('Voltage / V')


0 comments on commit 816dc38

Please sign in to comment.