Clear Filters
Clear Filters

MATLAB error: “Undefined function or method 'time' for input arguments of type 'char'”

1 view (last 30 days)
I wrote a modular MATLAB code which consists of several function files. I have no problem running my program. The problem is that once I try the code in debugging mode, I get the following error: "Undefined function or method 'time' for input arguments of type 'char'"
I don't understand what I did wrong.
I will appreciate your help.
  6 Comments

Sign in to comment.

Accepted Answer

M B
M B on 6 Mar 2014
I found the problem!
The name of the first file consists of whitespaces. MATLAB file names must NOT include whitesapces!
Still, I think that MATLAB should give an error saying that file name is illegal. The existing message can't help anyone who encountered such a problem.
  1 Comment
Smruti Ranjan Jena
Smruti Ranjan Jena on 7 Nov 2016
Thanks M B, This is exactly the same problem that I had. Like what you said there should not be any white space included.

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!