function [r,c] = qwerty_coord(key)
A={'1','2','3','4','5','6','7','8','9','0';'q','w','e','r','t','y','u','i','o','p';
'a','s','d','f','g','h','j','k','l',':';'z','x','c','v','b','n','m','','?'};
for i=1:4
for j=1:10
if A{i,j}==key;
r=i;
c=j;
break;
end
end
end
end
I'm curious: why did you include the [1 1]'s in your value set?
Hi, Heather. To be honest, this was an older version that I was using to test containers.Map, and ended up submitting by mistake.
You got the smallest answer by mistake? Cool!
That would be something, wouldn't it? The mistake was copy-pasting this version, with the [1 1]s, instead of a version without them. They are not needed, as you noticed.
Which values occur exactly three times?
3817 Solvers
Renaming a field in a structure array
732 Solvers
235 Solvers
724 Solvers
The sum of the numbers in the vector
426 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!