如何从semilogx图中提取矢量数据?

时间:2017-03-23 12:45:30

标签: matlab plot matlab-figure transfer-function loglog

如何从semilogx数字的矢量中提取数据? 我使用bode绘图来识别系统传递函数,因此我需要来自semilogx图的两个向量来比较斜率并从近似解中识别系统。

是否有其他方法可以进行此识别?I wanna get the slope of this figure so i need xy data from this figure

1 个答案:

答案 0 :(得分:0)

为什么要问特定的semilogx情节?从图中获取数据后,您可以像here一样直接访问数据。我在这里缺少什么?

hc=get(gca,'children');
data=get(hc,{'xdata','ydata'});
x=data{1};
y=data{2};
相关问题