1 Star 0 Fork 28

toumingyu/PID_Parameters_Auto_Tuning

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
find_fun.m 372 Bytes
Copy Edit Raw Blame History
function [ T,n ] = find_fun( Dai_f,k,l_T )
%找出矩阵中几个相同值,并返回它们的平均值
%T-每组数据平均值,n-每组数据长度,Dai_f-待寻值矩阵,k-寻值初值标号
if l_T>=4
m=find(abs(Dai_f-Dai_f(k))<1000); %返回与初值相近值标号
n=length(m); %m长度
T=Dai_f(k); %数据
else
T=0;n=0; %不存在第二个峰值
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/toumingyu/PID_Parameters_Auto_Tuning.git
git@gitee.com:toumingyu/PID_Parameters_Auto_Tuning.git
toumingyu
PID_Parameters_Auto_Tuning
PID_Parameters_Auto_Tuning
master

Search

23e8dbc6 1850385 7e0993f3 1850385