I keep getting this error when using trapz

5 visualizaciones (últimos 30 días)
caitlin Leonowicz
caitlin Leonowicz el 5 de Abr. de 2019
Respondida: Walter Roberson el 5 de Abr. de 2019
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));

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Abr. de 2019

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by