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.

 採用された回答

Walter Roberson
Walter Roberson 2013 年 9 月 6 日

0 投票

1 件のコメント

Michiya
Michiya 2013 年 9 月 7 日
Thank you for your answer. The answer I looked for is yours!Best,Michiya

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

その他の回答 (1 件)

ES
ES 2013 年 9 月 6 日

0 投票

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

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by