Info
This question is closed. Reopen it to edit or answer.
Array for Symbolic Expressions
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!