Skip to content

Commit af728e2

Browse files
committed
Update to use SeriesIndex='none', as appropriate
1 parent 5938271 commit af728e2

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

FunctionLibrary/cnPDE.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
% To visualize the outputs
7070
hold on
7171
delete(ax.Children(1:end-1));
72-
plot(xVals,[alpha(j*dt);u;beta(j*dt)],"k","LineWidth",1)
72+
try
73+
plot(xVals,[alpha(j*dt);u;beta(j*dt)],LineWidth=1,SeriesIndex="none")
74+
catch % If using R2023a or earlier
75+
plot(xVals,[alpha(j*dt);u;beta(j*dt)],"k",LineWidth=1)
76+
end
7377
subtitle("$t = $"+dt*j)
7478
drawnow
7579
pause(0.1)

FunctionLibrary/explicitPDE.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
% To visualize the outputs
6767
hold on
6868
delete(ax.Children(1:end-1));
69-
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],"k","LineWidth",4)
69+
try
70+
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],LineWidth=4,SeriesIndex="none")
71+
catch % If using R2023a or earlier
72+
plot(xVals,[alpha((j+1)*dt);u;beta((j+1)*dt)],"k",LineWidth=4)
73+
end
7074
subtitle("$t = $"+dt*(j+1))
7175
drawnow
7276
pause(0.1)

Scripts/NumericalPDEs.mlx

-2.34 KB
Binary file not shown.
267 KB
Binary file not shown.

Utilities/ProjectShutdown.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
MoveFilesAround("R2023b","MainMenu.mlx",proj,Flag="Close")
77
MoveFilesAround("R2023b","README.mlx",proj,Flag="Close")
88
MoveFilesAround("R2024a","PendulumModels.mlx",proj,Flag="Close")
9+
MoveFilesAround("R2023b","NumericalPDEs.mlx",proj,Flag="Close")
910

1011
% %% Example
1112
% % To move ScriptName.mlx from a folder on the project path into

Utilities/ProjectStartup.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
MoveFilesAround("R2023b","MainMenu.mlx",proj)
77
MoveFilesAround("R2023b","README.mlx",proj)
88
MoveFilesAround("R2024a","PendulumModels.mlx",proj)
9+
MoveFilesAround("R2023b","NumericalPDEs.mlx",proj)
910

1011
% %% Example
1112
% % To move ScriptName.mlx from a folder on the project path into

0 commit comments

Comments
 (0)