Grid = linspace(0,2*pi); xAxis = (prams.Radius + prams.radius*cos(Grid)).*cos(Grid); yAxis = (prams.Radius + prams.radius*cos(Grid)).*sin(Grid); zAxis = prams.radius.*sin(Grid); surf(xAxis,yAxis,zAxis); hold on;
Why is it throwing the error: Z must be a matrix,not a scalar or vector
Best Answer