필터 지우기
필터 지우기

how to create an array for each element of array

조회 수: 1 (최근 30일)
priyanka
priyanka 2014년 11월 26일
I have to create an array for each element of array. In 1st loop I have to create a array variable in 2nd loop values are stored in that array. But 1st array variables are need to be generate randomly.
l= any random number for i= 1:l node(i) for j = 1:l if(AdjMat(1,j)==1) node(i(a))=j; a=a+1; end end end end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by