how to set graph size

5 次查看(过去 30 天)
zilai si
zilai si 2019-5-11
回答: Josh 2019-5-11
hello everyone, I wonder how to change a graph like this:
into a graph like this
...

采纳的回答

Josh
Josh 2019-5-11
I'd use daspect to change the aspect ratio of your axes:
% Create plot vectors
x = [0, 1, 2];
y = [1, 0, 0];
% Plot
plot(x,y);
% Change plot aspect ratio so 1 unit of x equals 2 units of y (and z)
daspect([1,2,2])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by