MATLAB: Looping in Dataset Array

datasetfor loopMATLAB

Hi All,
I am using a Dataset array named myarray of dimension 6×40 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.

Best Answer

just replace () with {} and it should work: myarray{i,w}==...
and i recommend not to use 'i' since it is sqrt(-1)