Undefined function 'Qc' for input arguments of type 'double'. What's wrong with my function?
显示 更早的评论
Not sure what's happening here. I was checking documentation for a while and can't seem to find a solution. Here is my function:
function Q = heatc(c1,m1,t1,t2)
Q = c1.*m1.*(t2-t1);
end
Then when I call it I get the following error:
EDU>> y = heatc(4190,0.185,20,100)
Undefined function 'heatc' for input arguments of type 'double'.
Not sure what's up, isn't every variable automatically of type floating point double.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!