I keep getting this error when using trapz

5 次查看(过去 30 天)
Hi this error message keeps popping up wheni use trapz and im not sure how to fix it
Error using trapz (line 47)
Dimension argument must be a positive integer scalar
within indexing range.
Error in Hw8_func_crl (line 27)
F= k_p*theta(j) + k_i*trapz(t,theta(j));

回答(1 个)

Walter Roberson
Walter Roberson 2019-4-5

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by