フィルターのクリア

Differentiation, Minima and Maxima

4 ビュー (過去 30 日間)
Frank Lehmann
Frank Lehmann 2018 年 2 月 19 日
コメント済み: Frank Lehmann 2018 年 2 月 19 日
I want to differentiate the following loop for an induction motor with respect to (s) and find the minima and maxima:
for ii = 1:51
t_ind1(ii) = (3 * v_th^2 * r2 / s(ii)) / ...
(w_sync * ((r_th + r2/s(ii))^2 + (x_th + x2)^2) );
end
Which is the best method/approach to achieve this?
Frank
  1 件のコメント
Basil C.
Basil C. 2018 年 2 月 19 日
I guess this equation for calculating the Torque produced by an induction motor where s is the slip percentage. But why are you using s(ii), is it an array? If so, then how do you plan on differentiating it??

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 2 月 19 日
[max_t_ind1, idx_max_t_ind1] = max(t_ind1);
[min_t_ind1, idx_min_t_ind1] = min(t_ind1);
s_max_t_ind1 = s(idx_max_t_ind1);
s_min_t_ind1 = s(idx_min_t_ind1);
Assuming, that is, that there is only one minimum and one maximum. If there could be multiple, either use findpeaks() or else look for sign changes in diff(t_ind1)
  1 件のコメント
Frank Lehmann
Frank Lehmann 2018 年 2 月 19 日
Thanks Walter, it works like a charm!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMotor Drives についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by