The code

spcat([1,2], speye(2), speye(2))

returns a dense matrix. is there a way to force it to be sparse? 

Normal concatenation 

[speye(2)     spzeros(2,2);
 spzeros(2,2) speye(2)    ]

Works great but the above syntax is a lot more convenient

Thanks a lot!

Gabe

Reply via email to