필터 지우기
필터 지우기

3 matrix in a loop

조회 수: 1 (최근 30일)
sohaib atif
sohaib atif 2013년 10월 21일
댓글: sohaib atif 2013년 10월 21일
hi any body help me if any body know i am new user of matlab. i have 3 matrix of 2*2. And i want to use the matrix one by one in a funtion one at a time just like loop. what i do i dnt know please help
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 21일
What do you mean by use ?

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

채택된 답변

Pourya Alinezhad
Pourya Alinezhad 2013년 10월 21일
a=[1 2;4 6]
b=[5 6;8 7]
c=[5 8;8 5]
d={a b c};
for i=1:3
x=sin(cell2mat(d(i)))
end
  댓글 수: 1
sohaib atif
sohaib atif 2013년 10월 21일
Yes now its work.Pourya Alinezhad

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

추가 답변 (1개)

sohaib atif
sohaib atif 2013년 10월 21일
Yes now its work.Pourya Alinezhad
Azzi Abdelmalek i want to use 3 matrix in a loop one by one same like above thanks guys

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by