Help Calling a Function
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Direction of Arrival Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!