MATLAB: I want to execute if else statement using size of array or matrix

if statementmatrix arraysize;

For example:
if size(A)=4*3 % 4*3 is row*column
fprintf ("something")
else
fprintf ("nothing")
then what is the correct way to execute such problem?

Best Answer

if isequal(size(A),[4,3])
fprintf ("something")
else
fprintf ("nothing")
end