如何在MATLAB中的semilog图中制作半参数图?

时间:2013-09-12 06:54:44

标签: matlab plot matlab-figure insets

是否有可能在semilog情节中创建一个semilog图(semilogx,semilogy,loglog)?我需要一个放大图。我发现的大多数解决方案只能解决线性比例而不是对数比例。

1 个答案:

答案 0 :(得分:4)

尝试使用axes,例如:

x = linspace(0,1);
figure(1)

% plot on large axes
semilogy(x,1./x)

% create smaller axes in top right, and plot on it
axes('Position',[.55 .55 .33 .33])
box on
loglog(x,exp(x))

enter image description here

相关问题