フィルターのクリア

Help use unassigned variables in matlab

3 ビュー (過去 30 日間)
Andrew Roehr
Andrew Roehr 2021 年 5 月 5 日
コメント済み: Andrew Roehr 2021 年 5 月 17 日
Below is a question that I have for control theory in which I am being asked to find a feedback gain K to generate a specific set of eigenvalues.
I have written the code that I would typically use to solve this kind of question if all the values were given but this question is asking me to solve
for the K values for an unspecified frequency. I'm not asking to have the problem solved for me, I am simply wondering if there is a way to create a variable (wo)
and use it within my script without assigning a specific value.
I apologize for lacking the vocabulary to ask the question succinctly, that is why I provided the problem for context.
Thank you for your time and help.
  1 件のコメント
Andrew Roehr
Andrew Roehr 2021 年 5 月 5 日
I tried the sym command but it doesn't allow me to use the pole placement command

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

採用された回答

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2021 年 5 月 10 日
Hi,
The reason of the error is that the input arguments to "place" are not "convertible to floating-point numbers" as "A" and "B" contains symbolic variables. To avoid the error, one could wrap the call to "place" in another symbolic function such that "A" and "B" is conceivably reduced to a floating number. Here is the code that does that:
symplace = @(A,B,P)feval(symengine,'min',A,B,P);
LambdaCC = symfun(symplace(A,B,P));
Hope it helps.
  1 件のコメント
Andrew Roehr
Andrew Roehr 2021 年 5 月 17 日
Thank you for taking the time to answering my question!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by