Borrar filtros
Borrar filtros

Error occurred when called sftool

1 visualización (últimos 30 días)
Zhenhui
Zhenhui el 21 de Abr. de 2011
I dont know why the surface fitting tool window became blank/grey when I opened it. In the command window it says:
Warning: Error occurred while executing callback:
Undefined function or method 'legend' for input arguments of type 'double'.
> In FitsManager>FitsManager.newFit at 46
In sftool at 62
Even I opened the software again and didn't do anything before I called this function, it didnt work. I am a new learner and anyone knows how to solve it? thanks in advance!
Regards
Hui

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Abr. de 2011
which -all legend
You should see something like
toolbox/matlab/scribe/legend.m
If you do not get any answers at all then your MATLAB installation is probably incomplete or corrupted, as that is a basic part of MATLAB.
Another possibility (though it seems slim) is that you are attempting to use sftool with a very old version of MATLAB. I would have to dig into the documentation archives to see when legend() was implemented; rather some time ago, I would think!!
  2 comentarios
Zhenhui
Zhenhui el 21 de Abr. de 2011
thanks very much Wallter~
it said :'legend' not found
and my matlab is R2010a ( i think not old ^^), it worked well with all the functions before, but i dont know why it suddenly crashed. curve fitting works well anyway. i want to reinstall it, but i dont have the software now as it was installed by my Uni.
any other suggestions?
Walter Roberson
Walter Roberson el 21 de Abr. de 2011
If you don't have "legend" then it is difficult to predict what other important parts of MATLAB might have gone missing as well. There really isn't much of use that you can do until you get it reinstalled.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by