Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个不同比例的图表,我想使用子图。如何为 subplot(211) 设置轴大小并为 subplot(212) 设置不同的轴比例???
subplot返回一个坐标区对象:
ha = subplot(211); plot(1:10); set(ha, 'xscale', 'log'); hb = subplot(212); plot(1:10); set(hb, 'xscale', 'linear');
将其存储在变量中并根据需要设置比例。