Info

此问题已关闭。 请重新打开它进行编辑或回答。

Array for Symbolic Expressions

1 次查看(过去 30 天)
Emma Sellers
Emma Sellers 2019-10-24
关闭: MATLAB Answer Bot 2021-8-20
Can I create an array to store symbolic expressions??
I want to do something like:
Equation1 = vpa(Equation);
disp(Equation1)
Variable = symvar(Equation1,1);
disp(Variable)
TestVar = isequaln(Variable,Nodes(1,2));
disp(TestVar)
answer = inputdlg({'Enter Number of Nodes in Circuit (Max value: 10)'})
NodeNum = str2double(answer(1,1));
Array1 = zeros(1,NodeNum)
disp(Array1)
i = 0;
if TestVar == 1
i = i + 1 ;
Array1(1,2) = Equation1
disp(Array1)
end

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by