Undefined Function Error (undefined functions for argument of type 'double')

Hello all, I am creating a function to theoretically sort fruits. My function is:
function [minionB, myA, myB] = divideFruit(minions, bags, crates)
apples = bags / 20
bananas = crates / 24
minionB = bananas / minions
myA = apples - minions
myB = bananas - minions
end
When I attempt to run the program by assigning numerical values to minions, bags and crates, I receive the message "Undefined function 'divideFruit' for input arguments of type 'double'."
What do I need to change in order to properly run my function? Thank You

2 件のコメント

per isakson
per isakson 2015 年 1 月 17 日
編集済み: per isakson 2015 年 1 月 17 日
Shaun
Shaun 2015 年 1 月 17 日
Sounds like a path thing

サインインしてコメントする。

回答 (0 件)

質問済み:

Max
2015 年 1 月 17 日

編集済み:

2015 年 1 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by