Storing varying sized arrays in a single matrix
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
I want to store multiple different sized arrays from values 0-1 in a single matrix.
- [0 , 1]
- [0 , 0.5, 1]
- [0 , 0.25, 0.5, 0.75, 1]etc. etc.
The code below doesn't work but it gives a conceptual sign post
range=linspace(1,10,10); 
matrix=linspace(0,1,range);
Hope that makes sense,
Will
댓글 수: 0
채택된 답변
  per isakson
      
      
 2015년 4월 14일
        That isn't possible. However, you may "store multiple different sized arrays" in a cell array
    cac = {[0 , 1],[0 , 0.5, 1],[0 , 0.25, 0.5, 0.75, 1], etc. }
추가 답변 (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!

