Matlab - - final year project (ion propusion)

Click For Summary
SUMMARY

The discussion centers around a user's attempt to simulate an electrostatic craft transitioning from low Earth orbit to a geostationary orbit using MATLAB. The user is struggling with syntax issues and is unable to produce the desired spiral orbit plot. They mistakenly attempted to run their code in Mathematica instead of MATLAB, which contributed to their difficulties. The user seeks assistance in troubleshooting their code and ensuring that it prompts for thrust input.

PREREQUISITES
  • Familiarity with MATLAB programming and syntax
  • Understanding of orbital mechanics, specifically LEO to GEO transfers
  • Basic knowledge of electrostatic propulsion systems
  • Experience with plotting functions in MATLAB
NEXT STEPS
  • Review MATLAB syntax and debugging techniques
  • Learn about orbital transfer calculations and simulations
  • Explore MATLAB's plotting functions for visualizing orbital paths
  • Investigate electrostatic propulsion principles and their implementation in simulations
USEFUL FOR

This discussion is beneficial for aerospace engineering students, MATLAB programmers, and anyone involved in simulating orbital mechanics and propulsion systems.

Ewok
Messages
5
Reaction score
0

Homework Statement


Hi, I'm trying to simulate an electrostatic craft going from low Earth orbit to a geostationary orbit, but I'm having some trouble with matlab. I'm not the most confident programmer at the best of times, but needs must and so I've given it a go. As far as I can tell my syntax is correct, but I can't seem to get the correct outputs. The main aim that I have is to get the program to produce a plot of the spiral orbit, but it isn't playing ball.

Basically I think I've been staring at the code for too long and can't see where I'm going wrong, so some help would be greatly appreciated.

Thanks


Homework Equations





The Attempt at a Solution



I've included the 3 files that I'm using, the main file being LEO-GEO orbit xfer

If anyone can suggest any tweaks or things that I'm missing that would be great, also, the code is supposed to ask me to input a value for the thrust, but I never seem to get a prompt - again, maybe I'm missing something here.

Thanks Again
 

Attachments

Physics news on Phys.org
Oh ! I'm using a computer that isn't mine and I've just realized that the files are trying to run in mathematica not MATLAB - sorry about that.

I'll have another go - sticking it into MATLAB for certain this time ! So please ignore this post for the moment

Cheers
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
7K