フィルターのクリア

Creating Symbolic Variable or Functions with multiple instances

2 ビュー (過去 30 日間)
Rodney Manalo
Rodney Manalo 2018 年 8 月 20 日
回答済み: Tiasa Ghosh 2018 年 8 月 21 日
I'm working with equations like I_1, I_2, I_3, and so on. All of which have the same function definition like I_1=A_1*B_1 where each variable has a unique value. Creating these variables with syms command is a bit excessive if I include all of the variables. Does anyone have an Idea to declare these variables in one go?

回答 (1 件)

Tiasa Ghosh
Tiasa Ghosh 2018 年 8 月 21 日
You could create arrays of I,A and B like this:
I = sym('I_',[1 3]);
A =sym('A_',[1 3]);
B =sym('B_',[1 3]);
you will get I,A and B as array of the required variables

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by