Say I have the matrix
A = {{a,b,c,d,e}, {f,g,h,j,k}}
and I want to set some of these to zero. I have been doing this via
A/.{a->0, b->0}.
Is there a way to set a bunch to zero at once? I am dealing with many more parameters than 8 and would like to not type "->0," a million times. I tried
A/.{a,b,c}->0
But this just sets the list {a,b,c} to 0 (I believe). Thanks for the help.
ReplacePart[]
. But, you do not have a matrix, since your "rows" do not have the same dimensions. $\endgroup$