Writing a script to read input parameters for a satellite orbit from an external .txt file. Could someone correct my code?
1 次查看(过去 30 天)
显示 更早的评论
2 个评论
Walter Roberson
2018-3-11
I see that you edited the question, but it is not obvious to me what has changed. The suggestions I made earlier still apply.
采纳的回答
Walter Roberson
2018-3-11
- When you detect invalid input you should probably error()
- Your code is overwriting your complete variables sat_id, Xo, and so on, every iteration of the loop. You probably want to be assigning to sat_id(n), Xo(n) and so on.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!