Popular lifehacks
How do you graph a range in MATLAB?
How do you graph a range in MATLAB? For an automatically calculated minimum or maximum limit, use -inf or inf , respectively.[X,Y,Z] = peaks; surf(X,Y,Z) xlabel('x-axis') ylabel('y-axis') xlim([-inf 0]) ylim([-1…