i have a cell array and i want to reshape to matrix mxn and i have this error 'Subscripted assignment dimension mismatch'. for the following code
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
for m=1:M
    for n=1:N
        QRS_P(m,n)=QRS_Pulse_array{:,n};
    end
end
2 comentarios
Respuestas (1)
  KSSV
      
      
 el 6 de Mzo. de 2018
        QRS_P = cell(m,n) ;
  for m=1:M
      for n=1:N
          QRS_P{m,n}=QRS_Pulse_array{:,n};
      end
  end
Ver también
Categorías
				Más información sobre Loops and Conditional Statements 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!


