I am using the MATLAB exchange file called "A MATLAB Script for Earth-to-Mars Mission Design", getting error sunscreen is not defined
Ältere Kommentare anzeigen
Hello all
"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 Kommentare
Walter Roberson
am 9 Okt. 2024
I find reference that snscreen (the name used in the File Exchange code) is part of SNOPT .
Unfortunately I am not able to find any distribution of SNOPT, including not finding any definition of snopt.m
Chintan
am 9 Okt. 2024
dpb
am 10 Okt. 2024
What about at the <UCSD link provided in the FEX "Requires" secton>? I didn't try downloading anything, but it indicates SNOPT Fortran/Matlab stuff is available...
Walter Roberson
am 10 Okt. 2024
Ah, I overlooked that part!
Chintan
am 14 Okt. 2024
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Earth and Planetary Science finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
