Restructure matrix to get back original matrix
    조회 수: 1 (최근 30일)
  
       이전 댓글 표시
    
Hello, In the code below, I generate a random 8 x 5 matrix then create a new matrix 'temp' that is A restructured to `temp = reshape(A',r*c,1);`. I then do some manipulation on temp (but keep the dimension 40 x 1). How do you restructure 'temp' now to get back a matrix with the dimension as A (i.e. revert temp back now to a 8 x 5 matrix)?
Thanks. Here is the code that I have so far:
    A = randi(10,8,5);
    [r c] = size(A);
    temp = reshape(A',r*c,1);
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

