looping in Dataset Array

조회 수: 3 (최근 30일)
ARS
ARS 2012년 4월 14일
Hi All,
I am using a Dataset array named myarray of dimension 6x40 including headers.
I wish to loop through each element of the Dataset array and match the element with another tables element. I want to do the following:
for i= 1:40
for w=1:5
if myarray(i,w)=='suzuki'
then......
end
Please help me in writing a code for roaming through the 40 columns and 5 or 6 rows of each column using a for loop in a dataset array.
Regards,
Amd.

채택된 답변

Sargondjani
Sargondjani 2012년 4월 14일
just replace () with {} and it should work: myarray{i,w}==...
and i recommend not to use 'i' since it is sqrt(-1)
  댓글 수: 1
ARS
ARS 2012년 4월 14일
Thanx. It works.

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

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by