Evaluating the following integral using comp trap method for 2 trapezoids
% I'm trying to evaulate this integral using the composite trapezoid method % The output for the 'I' gives me 8.7797 which mat...
6ヶ月 前 | 1 件の回答 | 0
I am trying to plot this piecewise function using for loop and if statements, yet I keep receiving error message: Array indices must be positive integers or logical values.
g = 0:0.1:5; C(g) = 0*g; for i = 1:length(g) if g(i) < 2 && g(i) >= 0 ...
7ヶ月 前 | 1 件の回答 | 0