"Not enough input arguments" in Matlab Applications

In both the 'property inspector' and 'app designer' I run into similar issues, namely a "not enough input arguments" error when trying to utilise any of the ui elements in said applications.
The image below is the result of simply
  1. calling imagesc, or any other plotting function, with arbitrary data
  2. opening the property inspector
  3. trying to alter an arbitrary property. In this case I tried to change the font from Helvetica to something else, but it happens with any change.
In the app designer, a similar problem appears. The image below is the result of following the official getting started video from Mathworks
  1. opening a new blank app
  2. trying to drag & drop a component into the 'design view'
These errors occur both on my work PC and my home laptop, both on the same license but with no other marked similarity.
I'm curious if anyone has run into similar problems and knows a solution. Thank you.

Answers (1)

Hi Nicolas Kruse,
I assume you are using MATLAB in windows operating system, both in your office and at home. I suggest you to try the following workaround.
Kindly open MATLAB with the administrator credentials and try replicating all the steps that you mentioned above.
Also, please refer to the following link related to app designer.
https://in.mathworks.com/matlabcentral/answers/744017-error-not-enough-input-arguments

4 Comments

Dear Gokul,
Many thanks for your reply. I ran MATLAB as admin and the problem persisted. Additional attempts include:
  1. Reinstalling MATLAB 2022b
  2. Installing older releases
Regarding the link you shared, I came across that one earlier when troubleshooting but the person in question has an input argument problem with a specific part of their app, whereas the problem I encounter is an input argument error that happens whenever I click any ui element in the app designer.
I'm really stumped by the nature of this bug, none of my colleagues encounter it, nor is there any trace of somenone online with a similar problem, and the error pop-up is not descriptive enough for me to trace the problem.
Hi Nicolas Kruse,
I understand that all the mentioned workarounds you tried are within your assigned license. There are quite few workarounds that I can suggest.
  1. If your development is within one-drive, I kindly request you to try running MATLAB outside the drive environment.
  2. Check whether your files are shadowed by any other files in the near locations. As an example, the files sample.m in ../folder_2/main is shadowed by sample.m in ../folder_1/main.
/usr/local/MATLAB/R2022a/examples/folder_2/main/sample.m
/usr/local/MATLAB/R2022a/examples/folder_1/main/sample.m
Dear Gokul,
  1. I tried changing the working directory outside of Onedrive, but the problem persisted unfortunately. The installation location of Matlab is also not in a Onedrive folder.
  2. The problem appears regardless of me working in any file, as I can for example type
plot(1)
in the command line, then go to view-->property inspector, and then try to change anything, e.g. the default font of Helvetica to something else, and the error pops up as in the first image in my original post.
I'm curious if there is any more debug information I can get aside from the nondescriptive 'Not enough input arguments'. Does Matlab keep an error log somewhere?
Thanks again for your help in this matter.
Hi Gokul,
I have the identical issue with Nicolas has. Is there's a solution yet? It seems only happens on my laptop. Unfortunately it's a company laptop, i can't run it with Admin due to IT rule. However, my colleagues don't see the same issue.
Best,
Jenson

Sign in to comment.

Categories

Products

Release

R2022b

Asked:

on 1 Dec 2022

Commented:

on 31 Jan 2023

Community Treasure Hunt

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

Start Hunting!