Info
此问题已关闭。 请重新打开它进行编辑或回答。
Array for Symbolic Expressions
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!