updated plotting org

This commit is contained in:
2025-11-16 15:44:01 -08:00
parent b9a2a83ac6
commit 86342c4572
10 changed files with 76 additions and 86 deletions

View File

@@ -1,16 +1,11 @@
function [obj, f] = run(obj, f)
function [obj] = run(obj)
arguments (Input)
obj (1, 1) {mustBeA(obj, 'miSim')};
f (1, 1) {mustBeA(f, 'matlab.ui.Figure')} = figure;
end
arguments (Output)
obj (1, 1) {mustBeA(obj, 'miSim')};
f (1, 1) {mustBeA(f, 'matlab.ui.Figure')};
end
% Create axes if they don't already exist
f = firstPlotSetup(f);
% Set up times to iterate over
times = linspace(0, obj.timestep * obj.maxIter, obj.maxIter+1)';
partitioningTimes = times(obj.partitioningFreq:obj.partitioningFreq:size(times, 1));
@@ -37,13 +32,13 @@ function [obj, f] = run(obj, f)
end
% Update adjacency matrix
obj = obj.updateAdjacency;
obj = obj.updateAdjacency();
% Update plots
[obj, f] = obj.updatePlots(f, updatePartitions);
obj = obj.updatePlots(updatePartitions);
% Write frame in to video
I = getframe(f);
I = getframe(obj.f);
v.writeVideo(I);
end