Skip to content

Commit

Permalink
Fixed Results folder for Mini Golf
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed Apr 28, 2022
1 parent 1febb02 commit d1bd8c0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Examples/2D/Mini_Golf/Results/README_run_course.txt
@@ -0,0 +1,5 @@
Run MATLAB script Mini_Golf_Run_Course.m
That code will run each hole and save the path of the ball
on each hole to this folder as a MATLAB figure.

Copyright 2012-2022 The MathWorks(TM), Inc.
4 changes: 2 additions & 2 deletions Examples/2D/Mini_Golf/Scripts_Data/Mini_Golf_Run_Course.m
@@ -1,5 +1,5 @@
% RUN COURSE AND SAVE RESULTS IN EXCEL FILE
% Copyright 2012-2021 The MathWorks(TM), Inc.
% Copyright 2012-2022 The MathWorks(TM), Inc.

% RETURN TO HOME DIRECTORY SO THAT FIGURES ARE SAVED IN CORRECT FOLDER
cd(Mini_Golf_Model_HomeDir);
Expand Down Expand Up @@ -35,7 +35,7 @@
MGT.SimTime(hole_i) = Elapsed_Sim_Time;

% SAVE FIGURE WINDOWS TO A FILE
saveas(gcf,['./Results/Ball_Path_' HoleList(hole_i).Name],'fig');
saveas(gcf,[pwd filesep 'Results' filesep 'Ball_Path_' HoleList(hole_i).Name],'fig');
close(gcf);
end

Expand Down
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -10,6 +10,8 @@ and persistent contact (parts resting on each other).
**Please note that the Spatial Contact Force block has been added in R2019b.**
**You should see if this block meets your needs before using this library.**

**See File Exchange submission [Spatial Contact Force Examples Simscape Multibody](https://www.mathworks.com/matlabcentral/fileexchange/109680-spatial-contact-force-examples-simscape-multibody)**

You are welcome to use these models in your own projects. If you need to
include the library in your own example, I recommend you use just the
project Contact_Forces_Core.prj in subfolder Core. You can either use it
Expand Down Expand Up @@ -39,6 +41,9 @@ Recommendations:
can also help.

### **Release History**
**v5.0 Mar 2021** (R2019b through R2021a)
1. Updated v5p0 for R2021a

**v5.0 Sep 2020** (R2019b through R2020b)
1. Updated v5p0 for R2020b

Expand Down
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="b580afb4-ad06-4060-9b24-7ee8a8cdebcd" />
</Category>
</Info>

0 comments on commit d1bd8c0

Please sign in to comment.