I am using the MATLAB exchange file called "A MATLAB Script for Earth-to-Mars Mission Design", getting error sunscreen is not defined

2 ビュー (過去 30 日間)
Hello all
I am using the MATLAB exchnange file for the Earth to Mars mission design, the file called
"A MATLAB Script for Earth-to-Mars Mission Design
Determines optimal n-body ballistic trajectories from Earth park orbit to encounter at Mars."
When I am trying to run e2m_matlab.m code, I am getting some error, like following
Unrecognized function or variable 'sunscreen'.
Error in e2m_matlab (line 223)
sunscreen on;
^^^^^^^^^^^^^
Solve the problem I defined the sunscreen function in the matlab, then I was not throwing out the sunscreen error but, afterward I am geeting the following error regarding snopt
Sunscreen is now enabled.
File: snopt.m Line: 3 Column: 20
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Error in e2m_matlab (line 225)
[x, ~, ~, ~, ~] = snopt(xg, xlwr, xupr, xmul1, xstate1, ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any help will be greatly appreciated!
Thank you in advance for your help.
Best regards
Chintan Prajapati
  5 件のコメント
Chintan
Chintan 2024 年 10 月 14 日
Thank you dpb for your help.

サインインしてコメントする。

採用された回答

Sam Chak
Sam Chak 2024 年 10 月 10 日
Most of the simulation projects by David Eagle require SNOPT, which stands for Sparse Nonlinear OPTimizer. If you are a student or researcher based at a U.S. university, you can request access to unrestricted precompiled libraries for SNOPT. These libraries are time-limited to three months. However, you need to use your official university email (.edu) when requesting the libraries.
Fortunately, David Eagle also provides the non-SNOPT version for some projects that use the optimizer from the Optimization Toolbox (OTB). You can download this version:
  3 件のコメント
Sam Chak
Sam Chak 2024 年 10 月 14 日
You're welcome, @Chintan. If you find the info helpful, please consider clicking 'Accept' ✔ on the answer to close the issue. You may post a new question to ask technical aspects of the Earth-to-Mars mission design.
Chintan
Chintan 2024 年 10 月 14 日
Thank you for letting me know. I didn't know about how to close the answer, but now I know, so I will do it right away.
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEarth and Planetary Science についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by