필터 지우기
필터 지우기

matrix with randperm entries

조회 수: 1 (최근 30일)
fatemeh
fatemeh 2013년 10월 16일
댓글: fatemeh 2013년 10월 16일
i have a matrix which entries are randperm function i have a for loop for generating this matrix i want save all the matrix that generate in the loop while it can save 1 matrix in workspace can u help me for the save all of matrix?
this is my code:
for p=1:pop
s1={'courses','days&times','class','pro';'physic1',randperm(20,2),randperm(5,2),'poury';'math1',randperm(20,2),randperm(5,2),'saadat';
'compbs',randperm(20,2),randperm(5,2),'azyzy';'physic1Lab',randperm(20,2),randperm(5,2),'mahlooji';
'compLab',randperm(20,2),randperm(5,2),'alavy';'English',randperm(20,2),randperm(5,2),'tabary'}
p+1;
end

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 16일
편집: Azzi Abdelmalek 2013년 10월 16일
for p=1:10
s1{p}={'courses','days×','class','pro';
'physic1',randperm(20,2),randperm(5,2),'poury';
'math1',randperm(20,2),randperm(5,2),'saadat';
'compbs',randperm(20,2),randperm(5,2),'azyzy';
'physic1Lab',randperm(20,2),randperm(5,2),'mahlooji';
'compLab',randperm(20,2),randperm(5,2),'alavy';
'English',randperm(20,2),randperm(5,2),'tabary'}
end
  댓글 수: 4
Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 16일
clear s1
then try again
fatemeh
fatemeh 2013년 10월 16일
thanks,this is work!u are kindly!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by