MATLAB: Warning: Rank deficient, rank = 1, tol = 4.8961e-014. Could someone please help me fix this? My body message has code I used.

rank = 1rank deficienttol = 4.8961e-014.warning

[a,b] = meshgrid(-0.1:.2:1.6,-0.1:.2:2.5);
z=((2*(b.^2).*(1-a-b)/(1-(b.^2))).^0.5);

Best Answer

You neglected to include a "dot" for your element-wise division:
>> z=((2*(b.^2).*(1-a-b)./(1-(b.^2))).^0.5);
Related Question