converting vector to matrix
    6 views (last 30 days)
  
       Show older comments
    
Hello!
I want to convert vector:
V = [1 2 3 4 5 6 7 8 9]
To
V1 = [ 1 2 3; 4 5 6; 7 8 9 ]
Is there a Matlab command that will let me do this? or this needs to be coded? pleas help me Thanks in advence
0 Comments
Answers (1)
  Tom
      
 on 27 Jun 2012
        doc reshape
in this case:
V1=reshape(V,3,3)
3 Comments
  Sean de Wolski
      
      
 on 27 Jun 2012
				@Tom, MATLAB Answers law 1:
-If you post something on MATLAB Answers without checking it, it will contain a typo!
See Also
Categories
				Find more on Logical in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!