MATLAB Answers

Check for missing argument or incorrect argument data type in call to function 'new'.

조회 수: 185(최근 30일)
Altan Kerem Yavuz
Altan Kerem Yavuz 2021년 3월 30일
댓글: Altan Kerem Yavuz 2021년 4월 5일
I could not find the answer. I am missing something


Reshma Nerella
Reshma Nerella 2021년 4월 5일
The reason behind the error is that,
You are using 2 different names for function name and file name i.e new and Ve.
In MATLAB, if the function has only one function definition, the name of the file must match the name of the function.
So consider either of the following
  1. Naming your file to new
  2. Naming your function to Ve
To know more about functions, refer to the documenation page: functions
  댓글 수: 2

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by