Tried to change the diagonal elements of a magic square. Could not understand the error message.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Seetha Rama Raju Sanapala
 el 28 de Dic. de 2017
  
    a= magic(6), diag(a)=[1 0 2 0 3 4]
Error message that I got was "Subscripted assignment dimension mismatch".
Do not understand why this happened, when you can easily replace a column or row of the matrix with similar syntax.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Logical en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

