Well I have to say this is a bit embarrassing but I somehow managed to save the function in a directory other than the one it should have been in. Once moving the function to the proper directory everything worked fine.
Undefined function for input type 'cell'
조회 수: 20(최근 30일)
I've encountered an interesting problem while making functions which I was not experiencing before. I've been going through my code to generalize it and separate it into more manageable sections by creating functions, and in one function I just created it I am getting the error
Undefined function 'myFunction' for input arguments of type 'cell'.
Which is strange because up to this point my custom functions have been not giving me this error when I pass a cell array to them and the code within the function should handle the cell array just fine, but the error seems to be rejecting the input all together any way without doing any operations on it since the error appears to be generated from the input being purely of a type cell.
Does anyone have any experience with such errors? Why should one pop up now when my other functions can handle cell arrays just fine?
Thanks for any help.