MATLAB Answers

0

How can I plot a X where my dataset crosses the X axis (y=0), but only when dy/dx > 0?

Duncan Trenholm さんによって質問されました 2019 年 10 月 17 日
最新アクティビティ Star Strider
さんによって 回答されました 2019 年 10 月 17 日
See above
New to matlab, I have the following code already:
dataset = xlsread('time_series.xlsx');
x = dataset(:,1);
y = dataset(:,2);
plot(x,y)
xlabel('t [s]')
ylabel('mu [m]')
Is there a way I can export the points MatLab have identified?
Thanks

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: Star Strider
2019 年 10 月 17 日

To detect the zero-crossings, the code in Easy way of finding zero crossing of a function , and you can interpolate to get the exact independent variable value of the zero-crossings using the code example in Get t co-ordinate based off y co-ordinate. If you use the code in the first loop, the value of ‘B(1)’ (the slope parameter) will tell you if the vector is increasing or decreasing at that point.

  0 件のコメント

サインイン to comment.



Translated by