How to designate a variable in syms function

6 ビュー (過去 30 日間)
Hulk Hogan
Hulk Hogan 2020 年 6 月 21 日
回答済み: Hulk Hogan 2020 年 6 月 21 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by