Skip to content
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

3 body #7

Merged
merged 7 commits into from
Nov 17, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added plotting with different line colours.
This is for easy differentiation of different orbits.
  • Loading branch information
UtkarshKunwar committed Oct 9, 2016
commit 878018a44cde665a6179ebb92e3856d392f406e3
4 changes: 2 additions & 2 deletions plot_all.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
% List of all files of the format "body(i).dat"
x = 'body*.dat';
dir(x);

num_files = length(dir(x));

% Operating on all the files and plotting their X and Y coordinates.
Expand All @@ -10,7 +9,8 @@
fileObj = load(name);
x = fileObj(:,2);
y = fileObj(:,3);
plot(x, y);
% Plotting with random colours.
plot(x, y, 'color', rand(1, 3), 'linewidth', 1.5);
hold on;
endfor;
clear;
Expand Down