Help Calling a Function
Afficher commentaires plus anciens
The following is my .m file. I have the reaeration function working fine. It is just the deOxygen function that will not work. I get the following error when trying to run the program: "Warning: File: myHW7.m Line: 21 Column: 24 Function with duplicate name "deOxygen" cannot be called."
Any suggestions? Thanks in advance Alex
function constant = reaeration(array)
function resultarray = deOxygen(array , constant)
load PollutionData.txt;
array = PollutionData(:,1);
timearray = (0:.5:250);
constant = reaeration(array)
resultarray = deOxygen(array , constant)
return
function constant = reaeration(array)
constant = ((array(5,:) .* array(3,:)) .^ 0.5) ./ (array(4,:) .^ 1.5);
return
function resultarray = deOxygen(array , constant)
array(3,:) = array(3,:) .* 0.001076; %conversion
array(6,:) = array(6,:) .* 0.0002778; %conversion
for i = 250: 0.5: 0, do, end
resultarray = (((array(6,:) .* array(2,:)) ./ (constant - array(6,:)) .* (exp(-array(6,:) * i * 3600) - exp(-constant .* i .* 3600)) + (array(1,:) * exp(-constant .* i .* 3600))));
return
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Direction of Arrival Estimation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!