How to designate a variable in syms function

My code is the following:
What I'd like to happen is that the symbolic variable would be whatever I put in poly{1}. However, the eval() function for poly{2} only works when I declare syms x. If I changed the main variable in the second field, it does not work anymore. How can I fix this?

 채택된 답변

Hulk Hogan
Hulk Hogan 2020년 6월 21일

0 개 추천

The goal is to create symbolic variables via inputdlg. Here is what I did:
I used the sym() function inside syms. That's how I solved the problem.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2020년 6월 21일

답변:

2020년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by