problem with running some codes in http://www​.mathworks​.com/matla​bcentral/f​ileexchang​e/36321-de​mo-finding​-an-optima​l-path-usi​ng-matlab-​and-optimi​zation-too​lbox

1 view (last 30 days)
Hello every body I downloaded http://www.mathworks.com/matlabcentral/fileexchange/36321-demo-finding-an-optimal-path-using-matlab-and-optimization-toolbox but when I run the PathOptimizationDemo.m the below error is displayed:
??? Error: File: PathOptimizationDemo.m Line: 217 Column: 27 Unexpected MATLAB operator.
can anybody help me ASAP? Thanks in advance

Accepted Answer

Walter Roberson
Walter Roberson on 16 Aug 2013
Which MATLAB version are you running?
I suspect you are using a MATLAB version old enough to not know about using ~ as a placeholder.
Replace lines that look like
function NAME(~,~,variable1,variable2)
with
function NAME(TMP___1, TMP___2, variable1, variable2)
where TMP___1 and TMP___2 are arbitrary variable names that are not used inside the function.
  3 Comments
Hoda
Hoda on 16 Aug 2013
sorry ,Ididn't umderstand.what should I do exactly,I can't install newer version now.the version is 7.8.

Sign in to comment.

More Answers (0)

Categories

Find more on Files and Folders in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!