I do not know how to solve error. My matlab knowledge is quit basic can someone help? As I may need a function for this

Mudrik Ahmed on 2 Sep 2021
Latest activity Edit by Christopher Stapels on 3 Sep 2021

Unrecognized function or variable 'snopt'.

Error in Untitledidk (line 362) [x, f, inform, xmul, fmul] = snopt(xg, xlwr, xupr, xmul, xstate, ...

Christopher Stapels
Christopher Stapels on 3 Sep 2021

Can you provide some more information? What are you trying to do? did you define the function snopt somewhere? Is it in your current directory or on the path?

Mudrik Ahmed
Mudrik Ahmed on 3 Sep 2021

I am trying to run a script: flybymatlab.m by David Eagle. This script requires optimization and therefore a function known as SNOPT. This function has commands such as: % Set print, screen, workspace FIRST.

snprint(printfile); snscreen(screen); snsetwork(iwork,rwork);

But Matlab calls these as unrecognized. I have tried to get in touch with SNOPT because apparently there is a software package designed for matlab that can make this script run but with no success so far.

Can someone pls help??

Christopher Stapels
Christopher Stapels on 3 Sep 2021 (Edited on 3 Sep 2021)

Is there an IoT or ThingSpeak component to your work? If not, this forum may not the best place to get an answer.

 I suggest using <https://www.mathworks.com/matlabcentral/answers/questions/new/?s_tid=gn_mlc_ans_ask MATLAB answers> . You will get a much larger crowd of MATLAB users to help. Make sure you describe what you are doing and want to do, and perhaps even provide some code snippet.