MATLAB: Picking those matrices whose determinant is greater than 0

for loopfprintfimage analysisimage processingMATLABwhile loop

I have many matrices and I need to pick only those matrices whose determinant is greater than zero. For instance, consider the simple code which generates square matrices and evaluate its determinant. How can i display only those matrices whose determiant is greater than zero.
for i=1:5
a=rand(i)
b=det(a)
end
Any help will be appreciated.

Best Answer

WTP?
if b > 0
disp(a)
end
Related Question