approximate derivate with difference for a discrete data in matlab
Posted code-saturne
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了approximate derivate with difference for a discrete data in matlab相关的知识,希望对你有一定的参考价值。
backgound: post processing of VIV
goal: to get y‘ and y‘‘
input data:
output:
y‘ vs time, and y‘‘ vs time
Matlab code
1 clc; 2 clear; 3 data=xlsread(‘gap1Ur8.xlsx‘); 4 t=data(1000:2000,1); % time 5 dt= 0.005; 6 y=data(1000:2000,2); % displacement, 2nd column in the input data 7 der_y=diff(y)./dt; % y‘=dy/dt, i.e. 1st derivative 8 der_y_2 = diff(der_y)./dt; % y‘‘, i.e. 2nd derivative of y 9 plot( data(1002:2000,1), der_y_2, ‘k‘,data(1001:2000,1), der_y,‘r‘,t, y, ‘b‘);
以上是关于approximate derivate with difference for a discrete data in matlab的主要内容,如果未能解决你的问题,请参考以下文章
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
A simple flaw allows attackers to derive WiFi credentials with little effort.