Undefined function or method error
Mostrar comentarios más antiguos
Hi Guys,
I am trying generate a magic square using MATLAB using the following code:
clear
n=input('give input:');
if rem(n,2)~=0
M=odd_magic(n)
elseif rem(n,4)~=0
M=single_even_magic(n)
else
M=double_even_magic(n)
end
I am getting an error called -
Undefined function or method 'double_even_magic' for input arguments of type 'double'.
Kindly help me out in this regard and suggest answers. Thank you.
2 comentarios
Andreas Goser
el 8 de Feb. de 2012
Is that: Command line code, a function or a script?
Abhishek
el 8 de Feb. de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!