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')?

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by