Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added RM3_UserDefinedForce/RM3.slx

Copy link
Copy Markdown
Contributor

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

Binary file not shown.
Binary file added RM3_UserDefinedForce/ResultsV1/output_force1.mat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only position output is visualized, pare down file size

Binary file not shown.
Binary file added RM3_UserDefinedForce/ResultsV1/output_force2.mat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only position output is visualized, pare down file size

Binary file not shown.
Binary file added RM3_UserDefinedForce/ResultsV1/output_force3.mat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only position output is visualized, pare down file size

Binary file not shown.
Binary file added RM3_UserDefinedForce/ResultsV1/output_force4.mat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only position output is visualized, pare down file size

Binary file not shown.
25 changes: 25 additions & 0 deletions RM3_UserDefinedForce/dataVisualizationm.m

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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');
Binary file added RM3_UserDefinedForce/elevationData.mat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove. unused

Binary file not shown.
Loading
Loading