Matlab - modificar función imuitools

 
Vista:

modificar función imuitools

Publicado por Ana (2 intervenciones) el 29/12/2009 08:13:50
Hola!
Me gustaría saber si es posible modificar una función dada en matlab de toolbox\images\imuitools. Lo que quiero es añadir un argumento de salida a la función. Lo que he hecho ha sido reemplazar la primera línea:

function huic = impixelinfoval(parent,himage)
por
function [huic,var] = impixelinfoval(parent,himage)

Y le he dado un valor a 'var' dentro del código de la función. ¿Es posible hacerlo así? ¿Debería incluir algún otro cambio? Cuando lo ejecuto me aparece el siguiente mensaje de error:

Output argument "var" (and maybe others) not assigned during call to "C:\Archivos de
programa\MATLAB\R2008a\toolbox\images\imuitools\impixelinfoval.m (impixelinfoval)".

Igual no es posible modificar una función de las toolboxes de matlab...

Muchas gracias!

---------------------------------------------------------------------------------

Hi!!
I would like to know if it is possible to modify a Matlab given function from toolbox\images\imuitools. What I want to do is to add a new output argument to a function. What I've done is to modify the first line:
function huic = impixelinfoval(parent,himage)
to
function [huic,var] = impixelinfoval(parent,himage)

And I gave a value to 'var' in the function's code. Is it possible? Should I do another change to make it work? When executing the code this error message is displayed:

Output argument "var" (and maybe others) not assigned during call to "C:\Archivos de
programa\MATLAB\R2008a\toolbox\images\imuitools\impixelinfoval.m (impixelinfoval)".

Thanks!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder