integrad function not returning an output vector of the same length as the input vector
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have the following function
function x = rZSum(y, z)
y = load('delta.txt');
z = load('aSqr.txt');
x = y./z;
format long e
end
I want to integrate this between 0 and 0.9999
I have tried using
Q = quadl(@rZSum,0,0.9999)
and
Q = quad(@rZSum,0,0.9999)
with the following error being returned:
Error using quad (line 75)
The integrand function must return an output vector of the same length as the input
vector.
Im unsure of why this error is happening?
Thankyou for any help in advanced!
2 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!