Unrecognized function or variable

47 views (last 30 days)
PR
PR on 23 Oct 2021
Answered: Image Analyst on 23 Oct 2021
Hi All. I would like to ask you for some help. As I am new to MATLAB, I customised most of the settings manually and had a look at the code afterwards ('generate code'). After MATLAB generated the code, I tried to use the specific function generated for the individual application, and I am always getting an error. As an example: I tried to import my data and receive the error: Unrecognized function or variable 'importfile'. The same error is shown when I plotted my data (Unrecognized function or variable 'createfigure'), and did some curve fitting (Unrecognized function or variable 'createFit').
I found out and feel the problem could be in the fact where the files are saved. But I have no idea what I am doing wrong in saving them (I do have one file where everything is saved (.m, .mlx and my imported .xlsx files) and there is indeed another file related to the program itself, where all applications are stored.
Does someone know what is going wrong?
Thank you so much in advance!

Answers (1)

Image Analyst
Image Analyst on 23 Oct 2021
You have another file that is required called importfile() that is not found in your current folder or on your search path. Use the operating system to search your entire hard drive for it, then put its folder on the path.

Community Treasure Hunt

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

Start Hunting!