Borrar filtros
Borrar filtros

UNABLE TO LOAD A MESSAGE CATALOG

24 visualizaciones (últimos 30 días)
tl31
tl31 el 28 de Mayo de 2019
Comentada: Walter Roberson el 29 de Mayo de 2019
Hello Mathworks,
We have some trouble with the utilisation of the function FZERO in MATlab 2018b. We are looking for the meaning of the code below :
if nargin == 0
error(message('MATLAB:fzero:NotEnoughInputs'))
end
The error message that shows :
Error using error
Unable to load a message catalog 'MATLAB:fzero'. Please check the file location and format.
We try to understand the script 'MATLAB:fzero:NotEnoughInputs' and why this error message appears. Indeed it works in MATlab 2013.
We will appreciate any help you can give.

Respuestas (1)

Steven Lord
Steven Lord el 28 de Mayo de 2019
That is not the line as it appears in the fzero.m file that is included in MATLAB in release R2018b. You've modified that command, or you're trying to use the version of fzero from an older release in a newer release. The fzero function was modified between release R2013a and release R2018b so that's not going to work. Use the version of the fzero function included in your installation of release R2018b.
  2 comentarios
tl31
tl31 el 29 de Mayo de 2019
First of all, thank you for this quick answer. We are working on it.
Moreover, we have several questions (general) due to your answer.
To explain you the context of this command, we are currently working on a project which need the using of the FZERO function. We are using nargin and try to display an error message if the condition in nargin is not completed.
What is the meaning of this line : 'MATLAB:fzero:NotEnoughInputs' particurlarly 'MATLAB:fzero:'
Do you have an idea about what the MATLAB catalog is ?
We hope to hear from you soon to continue this interesting conversation.
Walter Roberson
Walter Roberson el 29 de Mayo de 2019
That character vector is used to look up the error message in the user's interface language, such as English or Japanese. The MATLAB:fzero part of it says that error message is to be found in the message file whose name begins with fzero in a directory named MATLAB.
That error message is produced when fzero is called without any parameters, such as
result = fzero()

Iniciar sesión para comentar.

Categorías

Más información sobre Optimization en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by