Pregunta: | 67753 - DUDA DE MATLAB |
Autor: | Alex Montoya |
Saludos
Tengo el siguiente algoritmo en matlab = n=input('Ingrese el numero de filas o columnas = '); Arreglo(n,n); cont=1; i=1; j=1; num=0; repeticion=0; while (cont <= n*n) num=input('Ingrese numero ='); repeticion=0; for h=1:n for k=1:n if (num == Arreglo(h,k)) disp('El número ya esta repetido') repeticion=1; end end end if (repeticion == 0) cont= cont + 1; Arreglo(j,i)= num; if (i==n) i=1; j=j+1; else i=i+1; end end end display(Arreglo); Y CUANDO LO EJECUTO Y LE DOY LA DIMESION DE LA MATRIZ ME APARECE ESTO ??? Undefined function or method 'Matriz' for input arguments of type 'double'. Error in ==> Intermedio7 at 3 Matriz(Estudiantes,6); ME PUEDEN AYUDAR POR FAVOR GRACIAS POR SU AYUDA |