I, too, thought that. But once you've got a half dozen or so components in
the circuit, it gets easier to write a simple routine to crank up the
admittance matrix (you write a "connect component between node x and node y"
routine, so your circuit design is just a series of calls to that routine).
Especially if you make the routine something like:
addcomponent (complex impedance, node 1, node 2)
and then do
Ymatrix = zeroes(20); % makes a 20x20 matrix of zeros
addcomponent (resistance, a, b,Ymatrix)
or
addcomponent (1/(1j * omega * capacitance), a, b, Ymatrix)