undefined function in GUI

1 visualización (últimos 30 días)
Lim Xiao Hui
Lim Xiao Hui el 15 de Jun. de 2021
Comentada: Rik el 16 de Jun. de 2021
Hello, can i ask why when i write code for GUI, it show
Undefined function 'multiply' for input arguments of type 'double'.?
Thank you.
  4 comentarios
Lim Xiao Hui
Lim Xiao Hui el 15 de Jun. de 2021
okok thank you!

Iniciar sesión para comentar.

Respuestas (1)

Kishan Dhakan
Kishan Dhakan el 16 de Jun. de 2021
If you're using MATLAB app designer, it will be easier if you click the 'add a function' button and define your multiply there itself (I see no reason to do it in a separate script). Note: If you add it as a private method, use app.multiply() everywhere.
  3 comentarios
Rik el 16 de Jun. de 2021
Given that you only know the name, it would be a bit odd to assume the functionality is the exact same as *.
Maybe this is what that function does:
function af=multiply(x,y)
af=@(c) x*y + c;

Iniciar sesión para comentar.


Más información sobre Package and Share Apps en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by