How to create new variables

I now calculate this program.
options = optimoptions('fmincon', 'Display','iter','Algorithm','interior-point');
[x,fval] = fmincon(@(x)mindistance(x,x0),x0,A,b,Aeq,beq,lb,[],[],options)
I want to create new variables for example, x,x0,etc. Please tell me how to do it.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Sep. 2013

0 Stimmen

1 Kommentar

Michiya
Michiya am 7 Sep. 2013
Thank you for your answer. The answer I looked for is yours!Best,Michiya

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

ES
ES am 6 Sep. 2013

0 Stimmen

do you mean to do
eval('x=0')?

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by