Info

この質問は閉じられています。 編集または回答するには再度開いてください。

what does this code do?

1 回表示 (過去 30 日間)
Leah Kocian
Leah Kocian 2015 年 11 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
p = 1;
while p<=15
i = strfind(puzzle(p,:),words);
if i>0
fprintf('row = %d\n',i)
fprintf('column = %d\n',p)
fprintf('direction = across (left to right)\n')
break
end
p = p+1;

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 30 日
That code would give you an error, because there is no 'end' to match the 'while'

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by