-
Notifications
You must be signed in to change notification settings - Fork 61
User defined force - RM3 #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If only position output is visualized, pare down file size |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If only position output is visualized, pare down file size |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If only position output is visualized, pare down file size |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If only position output is visualized, pare down file size |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename file |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| %% Data Visualization: Force Comparison (Updated Structure) | ||
| % Load the datasets | ||
| data0 = load("output_noForce.mat"); | ||
| data1 = load("output_force1.mat"); | ||
| data2 = load("output_force2.mat"); | ||
| data3 = load("output_force3.mat"); | ||
| data4 = load("output_force4.mat"); | ||
|
|
||
| figure('Color', 'w'); | ||
| hold on; grid on; | ||
|
|
||
| % Plot each line using the updated .output.bodies path | ||
| plot(data0.output.bodies(1).time, data0.output.bodies(1).position(:,3), 'k--', 'LineWidth', 1.5); | ||
| plot(data1.output.bodies(1).time, data1.output.bodies(1).position(:,3), 'LineWidth', 1.2); | ||
| plot(data2.output.bodies(1).time, data2.output.bodies(1).position(:,3), 'LineWidth', 1.2); | ||
| plot(data3.output.bodies(1).time, data3.output.bodies(1).position(:,3), 'LineWidth', 1.2); | ||
| plot(data4.output.bodies(1).time, data4.output.bodies(1).position(:,3), 'LineWidth', 1.2); | ||
|
|
||
| % Formatting the plot | ||
| xlabel('Time (s)', 'FontSize', 12); | ||
| ylabel('Vertical Position (m)', 'FontSize', 12); | ||
| title('Body 1 Heave Response Across Force Profiles', 'FontSize', 14); | ||
|
|
||
| legend('No Force', 'Force 1', 'Force 2', 'Force 3', 'Force 4', ... | ||
| 'Location', 'best'); |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove. unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resave to older simulink version