Skip to content

Commit

Permalink
Update to use SeriesIndex='none', as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
eszmw committed May 22, 2024
1 parent 5938271 commit af728e2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion FunctionLibrary/cnPDE.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
% To visualize the outputs
hold on
delete(ax.Children(1:end-1));
plot(xVals,[alpha(j*dt);u;beta(j*dt)],"k","LineWidth",1)
try
plot(xVals,[alpha(j*dt);u;beta(j*dt)],LineWidth=1,SeriesIndex="none")
catch % If using R2023a or earlier
plot(xVals,[alpha(j*dt);u;beta(j*dt)],"k",LineWidth=1)
end
subtitle("$t = $"+dt*j)
drawnow
pause(0.1)
Expand Down
6 changes: 5 additions & 1 deletion FunctionLibrary/explicitPDE.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
% To visualize the outputs
hold on
delete(ax.Children(1:end-1));
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],"k","LineWidth",4)
try
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],LineWidth=4,SeriesIndex="none")
catch % If using R2023a or earlier
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],"k",LineWidth=4)
end
subtitle("$t = $"+dt*(j+1))
drawnow
pause(0.1)
Expand Down
Binary file modified Scripts/NumericalPDEs.mlx
Binary file not shown.
Binary file added Utilities/OldVersions/NumericalPDEsOld.mlx
Binary file not shown.
1 change: 1 addition & 0 deletions Utilities/ProjectShutdown.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
MoveFilesAround("R2023b","MainMenu.mlx",proj,Flag="Close")
MoveFilesAround("R2023b","README.mlx",proj,Flag="Close")
MoveFilesAround("R2024a","PendulumModels.mlx",proj,Flag="Close")
MoveFilesAround("R2023b","NumericalPDEs.mlx",proj,Flag="Close")

% %% Example
% % To move ScriptName.mlx from a folder on the project path into
Expand Down
1 change: 1 addition & 0 deletions Utilities/ProjectStartup.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
MoveFilesAround("R2023b","MainMenu.mlx",proj)
MoveFilesAround("R2023b","README.mlx",proj)
MoveFilesAround("R2024a","PendulumModels.mlx",proj)
MoveFilesAround("R2023b","NumericalPDEs.mlx",proj)

% %% Example
% % To move ScriptName.mlx from a folder on the project path into
Expand Down

0 comments on commit af728e2

Please sign in to comment.