Info

此问题已关闭。 请重新打开它进行编辑或回答。

matlab plot(x_data)

1 次查看(过去 30 天)
linda cummings cummingslinda14@gmail.com
关闭: Walter Roberson 2016-10-6
Line = get(gca, 'k');
x_data = Line.XData;
y_data = Line.YData;
id = ~(isnan(x_data(:)) | isnan(y_data(:)));
figure; plot(x_data(id), y_data(id))
firstid = find(id, 1);
figure;
plot(x_data(firstid:(firstid + sum(id) - 1)), y_data(id))

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by