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?

 Akzeptierte Antwort

Hulk Hogan
Hulk Hogan am 21 Jun. 2020

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by