I want to show a function that take a sphere with radius 1 as input and that gives in output an ellipsoid with axes always lower then 1.
tiledlayout(1,2);[X, Y, Z] = ellipsoid(0,0,0,1,1,1,40);;surf(nexttile,X,Y,Z);axis equal;title('Before')mesh(nexttile,X/2,Y/2,Z/2);axis equaltitle('Then')
The problem with this code is that, instead of seeing a deformation of the sphere I get an adaptation of the axis. I'd like to fix the axes to be unitary for both the subfigures.
Best Answer