Remove the E from the integral() call, as it is not required.
result(2)
result(4)
result(6)
function test_integral = result(V)
test_integral = integral(@temp, -1, 1);
function tempf = temp(E)
tempf = E.*V;
end
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!